Which is the best one?
Many recommend xUnit, but NUnit and MSTest is easy to start. So, I’ll start with NUnit, cause MSTest doesn’t support WVD 2010 express.
How to setup NUnit at VWM 2010 express Or Visual Studio C# express
http://www.dijksterhuis.org/setting-up-nunit-for-c-unit-testing-with-visual-studio-c-express-2008/
BTW, Good news, WVD 2011 beta has MS unit test out of the box. Yeah~ I’ll move to ver. 2011 from today.
Good article to start with MS test.
http://msdn.microsoft.com/en-us/library/tfs/hh694602(v=vs.110).aspx
FAQ
– How to unit test App_Code of ASP.net website proejct
1. Change whole project to web application.
2. Change App_Code part as separate library project
3. Pre-compile App_Code part and do unit test for the binary