<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PFE - Developer Notes for the Field : Unit Test</title><link>http://blogs.msdn.com/pfedev/archive/tags/Unit+Test/default.aspx</link><description>Tags: Unit Test</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ASP.NET and Unit Tests</title><link>http://blogs.msdn.com/pfedev/archive/2007/11/12/asp-net-and-unit-tests.aspx</link><pubDate>Mon, 12 Nov 2007 07:01:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6126203</guid><dc:creator>pfedevblog</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/pfedev/comments/6126203.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pfedev/commentrss.aspx?PostID=6126203</wfw:commentRss><description>&lt;p&gt;I was onsite the other day and the customer wanted to use Visual Studio 2005 to auto generate the Unit Test stubs for their ASP.NET application.&amp;#xA0; They have a lot of rules tied up in the ASP.NET application project.&amp;#xA0; When we tried to generate the Unit tests we kept getting the following error:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;Source Code cannot be sufficiently parsed for code generation.&amp;#xA0; Please try to compile your project and fix any issues.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Well, needless to say the project compiled fine (and had been for a while) and ran fine.&amp;#xA0; We could not find any issues to fix.&amp;#xA0; My first thought was that this was a limitation because of the way they created their ASP.NET project.&amp;#xA0; So we got some details:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Originally Created in VS.NET 2003&lt;/li&gt;    &lt;li&gt;Migrated to VS 2005&lt;/li&gt;    &lt;li&gt;They did not convert to the new Page Model with App_Code and such.&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;After doing some digging I found out that the Unit Test Generation for some reason expects that the project has at least an empty &amp;quot;Settings.&amp;quot;&amp;#xA0; So we opened the properties on the project and clicked Settings.&amp;#xA0; Sure enough there was nothing there.&amp;#xA0; So we clicked the link to create the &amp;quot;Settings&amp;quot; and got the grid that would enable us to add settings.&amp;#xA0; We just left it blank and rebuilt.&amp;#xA0; At that point we retried the generation of the Unit Tests and everything went smoothly.&lt;/p&gt;  &lt;p&gt;Thanks,   &lt;br /&gt;Zach&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6126203" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pfedev/archive/tags/Zach/default.aspx">Zach</category><category domain="http://blogs.msdn.com/pfedev/archive/tags/Unit+Test/default.aspx">Unit Test</category><category domain="http://blogs.msdn.com/pfedev/archive/tags/VSTS/default.aspx">VSTS</category><category domain="http://blogs.msdn.com/pfedev/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>