How to list all methods-of-a-class/classes that are not tested?
I want to have a list of not-tested methods/classes but not sure how to get it. Please help.开发者_StackOverflow中文版
[Edit] I'm using test framework Moq.
You're after a code coverage program.
Which unit testing framework are you using? If you're using Microsoft's built in unit test framework in VS2010 Ultimate or Premium you'll have code coverage built in. You can enable it by following these steps.
If you don't have Ultimate/Premium, or you're using another framework (ie: NUnit), you could consider dotCover from JetBrains.
For a free alternative, if you're using NUnit, you can download the community edition of NCover (a previously free coverage framework).
Use something like NCover
See http://ncover.sourceforge.net/ and http://www.ncover.com/
This shows your a complete report of your unit test coverage and what classes are tested or not.
精彩评论