简体   繁体   中英

Find good “targets” for unit tests in c#

For a big Project I am now working on, I was going to write some unit Tests.

The problem right now is that I need some kind of aid to determine which methods should be preferred over others, when it comes to unit tests.

Is there a way in Visual Studio (or any other trick) to find interfaces/methods that are used more than others? Any help to find methods that should be targeted via unit tests?

EDIT: Sorry I think I see what you mean now.

If you right click on a method in Visual Studio and select "Find all references" you can see how many times you call that method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM