<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Creating Unit Tests for ASP.NET MVC Applications</title><link>http://asp.net</link><pubDate>Tue, 17 May 2011 23:43:46 GMT</pubDate><generator>umbraco</generator><description>Comments for Creating Unit Tests for ASP.NET MVC Applications</description><language>en</language><atom:link href="http://asp.net/rss/comments/27482" rel="self" type="application/rss+xml" /><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 26 Aug 2008 20:42:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006961</guid><description><![CDATA[ <p>Thanks...</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amanprogrammer</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 16 Sep 2008 16:55:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006962</guid><description><![CDATA[ <p>Thank you.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/amanprogrammer.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by enginuysal</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Wed, 01 Oct 2008 08:15:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006963</guid><description><![CDATA[ <p>Thanks, very usefull..</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/enginuysal.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by atarikg</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Fri, 03 Oct 2008 03:11:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006964</guid><description><![CDATA[ <p>Cool Video Series :) thanks sir..</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/atarikg.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gerrylowry</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Thu, 18 Dec 2008 16:33:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006965</guid><description><![CDATA[ <p>at approximately the three minute 40 second mark, Stephen mentions that Microsoft has given the developer a choice of testing frameworks.</p> <p>This does not happen automatically. &#160;First, you must download and install the third party framework.</p> <p>Examples:</p> <p>xUnit: &#160;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.codeplex.com/xunit&quot;&gt;http://www.codeplex.com/xunit&lt;/a&gt;</p> <p>NUnit: &#160;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.nunit.org&quot;&gt;http://www.nunit.org&lt;/a&gt;</p> <p>Simply installing a third party unit testing framework may not be sufficient. &#160;If your third party unit testing framework does not show up by itself, then you will likely find this article helpful:</p> <p>&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://quickstarts.asp.net/previews/mvc/mvc_AddingCustomTestFramework.htm&quot;&gt;quickstarts.asp.net/.../mvc_AddingCustomTestFramework.htm&lt;/a&gt;</p> <p>Note: &#160;your preferred third party testing framework may not easily support both c# and vb.</p> <p>Note: &#160;not all versions of Visual Studio 2008 directly support unit testing. &#160;This applies specifically to the &quot;Express&quot; versions and also to the &quot;Standard&quot; version. &#160;It may be possible to use your third party unit testing framework with such versions but you&#39;ll likely have to do some additional &quot;coding by hand&quot; to get the same benefit that may get done for you automatically by a unit testing template that is integrated with the remaining versions of VS2008.</p> <p>I hope Microsoft will make it easy to use TDD with the &quot;Express&quot; and &quot;Standard&quot; versions of Visual Studio 2008 since one of the pillars of the asp.net mvc framework is to support test driven development as Stephen mentions at the beginning of this video. </p> <p>Regards,</p> <p>Gerry (Lowry)</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/gerrylowry.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by higautamsingh</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Mon, 12 Jan 2009 04:18:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006966</guid><description><![CDATA[ <p>its really helpfull video</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/higautamsingh.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by brettski</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Fri, 23 Jan 2009 14:36:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006967</guid><description><![CDATA[ <p>Decent video, thank you.</p> <p>I have a question. &#160;How does the test pass on returning the details view, when no actual details view existed in the project? &#160;</p> <p>You created the products controller, but never the veiw, so is this truly a useful test?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/brettski.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Danny117</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Fri, 13 Mar 2009 15:04:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006968</guid><description><![CDATA[ <p>Thanks,</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Danny117.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Djibril_Chimere_DIAW</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Mon, 16 Mar 2009 10:00:38 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006969</guid><description><![CDATA[ <p>Thanks! J&#235;r&#235;j&#235;f!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Djibril_Chimere_DIAW.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by paulstack</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Thu, 19 Mar 2009 17:44:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006970</guid><description><![CDATA[ <p>Thanks man, love this videos</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/paulstack.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jsalinase</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 07 Apr 2009 22:20:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006971</guid><description><![CDATA[ <p>Thanks for this.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/jsalinase.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jasonyun</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Thu, 07 May 2009 12:41:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006972</guid><description><![CDATA[ <p>OK?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/jasonyun.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sheryever</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Sun, 10 May 2009 00:59:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006973</guid><description><![CDATA[ <p>Can any of you suggest me, what to use for TDD, Ms unit-testing framework or NUnit?</p><p></p><p>After few days, my team will be started MVC web application with TDD(first time). So, i just have few days to decide, i don&#39;t want to change unit-testing framework during development, due to any restriction of testing framework.</p><p>As i think, unit-testing framework is most import part of TDD.</p><p></p><p>@Stephen, I really expects some good suggestions from you, as you are demonstrating MVC with TDD.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/sheryever.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by FlashLarry</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Sat, 06 Jun 2009 12:30:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006974</guid><description><![CDATA[ <p>To learn this stuff I rewrite VB apps in C#.  But the typeing in C# is stronger.  In the TestDetailsRedirect we&#39;re looking for a RedirectToRouteResult but just sticking this in this won&#39;t work because the return from controller.Details in C# is typed as a ViewResult. You can&#39;t get two different return types out of a C# method so how do you impliment the RedirectToRouteResult to redirect the error?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/FlashLarry.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by A6E</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Thu, 25 Jun 2009 13:44:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006975</guid><description><![CDATA[ <p>I want to start by saying that you are doing a good job, and your videos are very informative.  I however had a problem trying out the example in this video, in the second round of tests having to do with ViewData(TestDetailsViewData) i couldnt get it to pass i kept getting an error stating that &quot; Type &#39;Product&#39; is not defined.&quot; I would appreciate if anyone could help out</p><p></p><p>Thanks   </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/A6E.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by balapraveen</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Fri, 27 Nov 2009 04:14:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006976</guid><description><![CDATA[ <p>thanks, really a nice video.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/balapraveen.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kodicus</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Sun, 13 Dec 2009 03:21:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006977</guid><description><![CDATA[ <p>When using C#, cast the ActionResulst to a ViewResult: var result = (ViewResult)(controller.Details(2));</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kodicus.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jagreehal</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Wed, 27 Jan 2010 12:17:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006978</guid><description><![CDATA[ <p>I&#39;ve blogged about creating unit tests for ASP.NET MVC controllers</p><p></p><p><a rel="nofollow" href="http://www.arrangeactassert.com/how-to-unit-test-asp-net-mvc-controllers/" target="_blank">www.arrangeactassert.com/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jagreehal.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hkhokhar12</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Mon, 05 Apr 2010 12:59:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006979</guid><description><![CDATA[ <p>Great example. Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/hkhokhar12.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vvvvvdev</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 20 Apr 2010 03:58:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006980</guid><description><![CDATA[ <p>great stuff</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/vvvvvdev.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Eg-Virus</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 27 Apr 2010 05:21:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000006981</guid><description><![CDATA[ <p>Great Thanx to you sir</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Eg-Virus.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ziaur10</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Wed, 02 Jun 2010 10:09:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000008967</guid><description><![CDATA[ <p>Thanks; Its very basic and guiding  tutorial. I am happy with to get unit testing idea within pretty short time.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ziaur10.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jamesguo</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Sun, 25 Jul 2010 17:26:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009602</guid><description><![CDATA[ <p>The built-in unit test support is great. This increases productivity in unit testing which is a must for any coder. The test driven development idea in MVC is even greater. Very nice.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jamesguo.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mohammed askar</title><link>http://asp.net/mvc/videos/mvc-2/how-do-i/creating-unit-tests-for-aspnet-mvc-applications</link><pubDate>Tue, 17 May 2011 23:43:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013203</guid><description><![CDATA[ <p>Nice among many </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mohammed%20askar.jpg?forceidenticon=false&amp;dt=635046640800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>