<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TDD of a WinForm app &#8211; Part 3 &#8211; Adding Account Data</title>
	<atom:link href="http://blog.coryfoy.com/2007/11/tdd-of-a-winform-app-part-3-adding-account-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coryfoy.com/2007/11/tdd-of-a-winform-app-part-3-adding-account-data/</link>
	<description>It&#039;s all about delivering</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:42:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: ulu</title>
		<link>http://blog.coryfoy.com/2007/11/tdd-of-a-winform-app-part-3-adding-account-data/comment-page-1/#comment-109</link>
		<dc:creator>ulu</dc:creator>
		<pubDate>Sun, 04 Nov 2007 09:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=109#comment-109</guid>
		<description>Wow, that&#039;s a lot of work!&lt;br /&gt;&lt;br /&gt;How about using NUnitForms? You can write a test verifying that clicking a button opens a window, then filling a form and closing the window makes the record appear in the main form. Quickly make it pass, and then refactor it to the MVP pattern or whatever you find appropriate, adding tests as necessary. So, after you are sure it works, you have plenty of time to think about responsibilities and such, and if you don&#039;t add too many tests, you&#039;ll be able to redesign later.&lt;br /&gt;&lt;br /&gt;In addition, NUnitForms makes it very simple to fire UI events. You can avoid subclassing your form, for example, and other hacks.&lt;br /&gt;&lt;br /&gt;One reason why I usually avoid your approach is that you have to keep all your pieces in your head at once. Note that several times you have to make a mental note in order to return to it later. This way, if you forgot something, all your tests are green, but the thing can&#039;t do anything useful. But that&#039;s probably me, I don&#039;t like making design decisions before coding.</description>
		<content:encoded><![CDATA[<p>Wow, that&#8217;s a lot of work!</p>
<p>How about using NUnitForms? You can write a test verifying that clicking a button opens a window, then filling a form and closing the window makes the record appear in the main form. Quickly make it pass, and then refactor it to the MVP pattern or whatever you find appropriate, adding tests as necessary. So, after you are sure it works, you have plenty of time to think about responsibilities and such, and if you don&#8217;t add too many tests, you&#8217;ll be able to redesign later.</p>
<p>In addition, NUnitForms makes it very simple to fire UI events. You can avoid subclassing your form, for example, and other hacks.</p>
<p>One reason why I usually avoid your approach is that you have to keep all your pieces in your head at once. Note that several times you have to make a mental note in order to return to it later. This way, if you forgot something, all your tests are green, but the thing can&#8217;t do anything useful. But that&#8217;s probably me, I don&#8217;t like making design decisions before coding.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

