{"id":3664,"date":"2009-04-28T14:59:00","date_gmt":"2009-04-28T14:59:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2009\/04\/28\/updated-nunit-templates-for-asp-net-mvc-1-0-rtm\/"},"modified":"2009-04-28T14:59:00","modified_gmt":"2009-04-28T14:59:00","slug":"updated-nunit-templates-for-asp-net-mvc-1-0-rtm","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/updated-nunit-templates-for-asp-net-mvc-1-0-rtm\/","title":{"rendered":"Updated NUnit Templates for ASP.Net MVC 1.0 RTM"},"content":{"rendered":"<p><P>ASP.Net MVC 1.0 RTM has been out for a while and I noticed that people are still downloading an <A href=\"http:\/\/blogs.msdn.com\/webdevtools\/archive\/2008\/05\/30\/asp-net-mvc-preview-3-tooling-updates.aspx\">NUnit sample project<\/A> I created for ASP.Net MVC Preview 3. Since then an AccountController class and a corresponding set of unit tests have been added to the MVC Application project. I created an updated set of NUnit templates with tests for the Home and Account controllers. To install the templates, just extract the zip file from the link below and run <STRONG><EM>installNUnit.cmd<\/EM><\/STRONG>. VWD Express is supported along with VSTS as well as support for x86 and x64 bit OS&#8217;s. If you are installing on Vista or higher, run the cmd file as an admin.<\/P>\n<P><A title=\"NUnit Test Templates \" href=\"http:\/\/www.box.net\/shared\/u21d2nr0h9\"><STRONG>NUnit Test Templates<\/STRONG><\/A>&nbsp;<\/P>\n<P>Below is a screenshot of the NUnit AccountControllerTest class for Visual Basic. If you build a new MVC project with <STRONG>NUnit<\/STRONG> selected as the test framework and run the test project dll in NUnit, you will see all the tests pass.<\/P>\n<P>&nbsp;<A href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/NunitRTM.png\"><IMG title=\"NunitRTM\" height=\"624\" alt=\"NunitRTM\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/16\/2019\/02\/NunitRTM_thumb.png\" width=\"835\" border=\"0\"><\/A><\/P>\n<P>Hope this helps you unit test your MVC Apps!<\/P>\n<P>Joe Cartano | Visual Web Developer<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ASP.Net MVC 1.0 RTM has been out for a while and I noticed that people are still downloading an NUnit sample project I created for ASP.Net MVC Preview 3. Since then an AccountController class and a corresponding set of unit tests have been added to the MVC Application project. I created an updated set of [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[4,31,7333,7288,7262,7291,7286,7338,7273,138,7302,7268],"class_list":["post-3664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-net","tag-asp-net","tag-asp-net-mvc","tag-asp-net-mvc-framework","tag-development","tag-joe-cartano","tag-mvc","tag-nunit","tag-orcas","tag-unit-testing","tag-visual-studio-2008","tag-web"],"acf":[],"blog_post_summary":"<p>ASP.Net MVC 1.0 RTM has been out for a while and I noticed that people are still downloading an NUnit sample project I created for ASP.Net MVC Preview 3. Since then an AccountController class and a corresponding set of unit tests have been added to the MVC Application project. I created an updated set of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=3664"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/3664\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=3664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=3664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=3664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}