Unit Test Getting Started

Which is the best one?

http://stackoverflow.com/questions/393184/which-unit-test-framework-and-how-to-get-started-for-asp-net-mvc

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

Source: http://stackoverflow.com/questions/1198555/unit-testing-asp-net-web-site-project-code-stored-in-app-code

 

 

Leave a comment

Your email address will not be published. Required fields are marked *