{"id":578,"date":"2012-03-14T22:55:37","date_gmt":"2012-03-14T12:55:37","guid":{"rendered":"http:\/\/www.moneystock.net\/wp_e\/?p=578"},"modified":"2012-07-22T23:25:33","modified_gmt":"2012-07-22T13:25:33","slug":"unit-test-getting-started","status":"publish","type":"post","link":"https:\/\/moneystock.net\/wp_e\/2012\/03\/14\/unit-test-getting-started\/","title":{"rendered":"Unit Test Getting Started"},"content":{"rendered":"<p><strong>Which is the best one?<\/strong><\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/393184\/which-unit-test-framework-and-how-to-get-started-for-asp-net-mvc\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/393184\/which-unit-test-framework-and-how-to-get-started-for-asp-net-mvc<\/a><\/p>\n<p>Many recommend xUnit, but NUnit and MSTest is easy to start. So, I&#8217;ll start with NUnit, cause MSTest doesn&#8217;t support WVD 2010 express.<\/p>\n<p>How to setup NUnit at VWM 2010 express Or Visual Studio C# express<\/p>\n<p><a href=\"http:\/\/www.dijksterhuis.org\/setting-up-nunit-for-c-unit-testing-with-visual-studio-c-express-2008\/\" target=\"_blank\">http:\/\/www.dijksterhuis.org\/setting-up-nunit-for-c-unit-testing-with-visual-studio-c-express-2008\/<\/a><\/p>\n<p>BTW, Good news, WVD 2011 beta has MS unit test out of the box. Yeah~ I&#8217;ll move to ver. 2011 from today.<\/p>\n<p><strong>Good article to start with MS test.<\/strong><\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/tfs\/hh694602(v=vs.110).aspx\">http:\/\/msdn.microsoft.com\/en-us\/library\/tfs\/hh694602(v=vs.110).aspx<\/a><\/p>\n<p><strong>FAQ<\/strong><\/p>\n<p>&#8211; How to unit test App_Code of ASP.net \u00a0website proejct<br \/>\n1. Change whole project to web application.<br \/>\n2. Change App_Code part as separate library project<br \/>\n3. Pre-compile App_Code part and do unit test for the binary<\/p>\n<p>Source:\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/1198555\/unit-testing-asp-net-web-site-project-code-stored-in-app-code\">http:\/\/stackoverflow.com\/questions\/1198555\/unit-testing-asp-net-web-site-project-code-stored-in-app-code<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ll start with NUnit, cause MSTest doesn&#8217;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&hellip; <a class=\"more-link\" href=\"https:\/\/moneystock.net\/wp_e\/2012\/03\/14\/unit-test-getting-started\/\">Continue reading <span class=\"screen-reader-text\">Unit Test Getting Started<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[122,79],"tags":[],"class_list":["post-578","post","type-post","status-publish","format-standard","hentry","category-asp-net-web-development","category-web-development","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":9,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/578\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}