<?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: Writing tests for private void classes</title>
	<atom:link href="http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/</link>
	<description>Agile Coaching, Ruby, .NET, Debugging, why not?</description>
	<lastBuildDate>Tue, 09 Mar 2010 17:43:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Cory Foy</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-552</link>
		<dc:creator>Cory Foy</dc:creator>
		<pubDate>Tue, 08 Nov 2005 02:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-552</guid>
		<description>&quot;I think the revision has changed behavior. In the original, the current font was unaffected if the user clicked cancel; in the revision, it is set to the default. So I&#039;d write a test where the current font was not default and cancel gets &quot;clicked&quot;.&quot;&lt;br /&gt;&lt;br /&gt;Hi Carl,&lt;br /&gt;&lt;br /&gt;You do have a point, although the Font technically wouldn&#039;t change, since the default font is passed in, so if the user hits cancel it would just get set to what it was before.&lt;br /&gt;&lt;br /&gt;This could cause events to fire, like OnFontChange events. So perhaps extracting the method wasn&#039;t the best way to preserve behavior.&lt;br /&gt;&lt;br /&gt;Thanks for pointing it out!</description>
		<content:encoded><![CDATA[<p>&#8220;I think the revision has changed behavior. In the original, the current font was unaffected if the user clicked cancel; in the revision, it is set to the default. So I&#8217;d write a test where the current font was not default and cancel gets &#8220;clicked&#8221;.&#8221;</p>
<p>Hi Carl,</p>
<p>You do have a point, although the Font technically wouldn&#8217;t change, since the default font is passed in, so if the user hits cancel it would just get set to what it was before.</p>
<p>This could cause events to fire, like OnFontChange events. So perhaps extracting the method wasn&#8217;t the best way to preserve behavior.</p>
<p>Thanks for pointing it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Williams</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-553</link>
		<dc:creator>Anthony Williams</dc:creator>
		<pubDate>Mon, 07 Nov 2005 06:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-553</guid>
		<description>I think that the GetFontFromUserSeletion function belongs on a separate class. I have added an entry to my blog giving more detail at: &lt;a http:=&quot;HTTP:&quot;&gt;http://www.livejournal.com/users/anthony_w/8000.html&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I think that the GetFontFromUserSeletion function belongs on a separate class. I have added an entry to my blog giving more detail at: <a http:="HTTP:">http://www.livejournal.com/users/anthony_w/8000.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-554</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 05 Nov 2005 11:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-554</guid>
		<description>Cory...don&#039;t know if this&#039;ll make it back to you or not, sure hope so.  Please tell Crissie that I thoroughly enjoyed the tour of your photo gallery - &quot;baby&quot;, wedding pics, and especially Gail&#039;s awesome &quot;jump&quot;!  Glad you all are doing so great!  Good luck w/the pregnancy and baby preparations.  Give &quot;Mommy&quot; a big hug from a very looooong time old friend and fan!  Cheers...BJ</description>
		<content:encoded><![CDATA[<p>Cory&#8230;don&#8217;t know if this&#8217;ll make it back to you or not, sure hope so.  Please tell Crissie that I thoroughly enjoyed the tour of your photo gallery &#8211; &#8220;baby&#8221;, wedding pics, and especially Gail&#8217;s awesome &#8220;jump&#8221;!  Glad you all are doing so great!  Good luck w/the pregnancy and baby preparations.  Give &#8220;Mommy&#8221; a big hug from a very looooong time old friend and fan!  Cheers&#8230;BJ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-555</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Sat, 05 Nov 2005 11:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-555</guid>
		<description>I think the revision has changed behavior.  In the original, the current font was unaffected if the user clicked cancel; in the revision, it is set to the default.  So I&#039;d write a test where the current font was not default and cancel gets &quot;clicked&quot;.</description>
		<content:encoded><![CDATA[<p>I think the revision has changed behavior.  In the original, the current font was unaffected if the user clicked cancel; in the revision, it is set to the default.  So I&#8217;d write a test where the current font was not default and cancel gets &#8220;clicked&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Bellware</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-556</link>
		<dc:creator>Scott Bellware</dc:creator>
		<pubDate>Fri, 04 Nov 2005 13:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-556</guid>
		<description>Doh!  That should have read &quot;...knock a couple Cyclomatic Complexity points off of the...&quot;</description>
		<content:encoded><![CDATA[<p>Doh!  That should have read &#8220;&#8230;knock a couple Cyclomatic Complexity points off of the&#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Bellware</title>
		<link>http://blog.coryfoy.com/2005/11/writing-tests-for-private-void-classes/comment-page-1/#comment-557</link>
		<dc:creator>Scott Bellware</dc:creator>
		<pubDate>Fri, 04 Nov 2005 13:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cornetdesign.com/?p=327#comment-557</guid>
		<description>Great post!  One thing though...&lt;br /&gt;&lt;br /&gt;If you&#039;re going to add a configuration item to influence which IFontDialog that the FontDialogFactory will create, why not just put the class name of the font dialog in the config and then instantiate it using the System.Reflection.Actovator?  This will free your code from external environmental conditions, and will know couple Cyclomatic Complexity points off of the GetFontDialog method.&lt;br /&gt;&lt;br /&gt;And... if you add the class name to configuration, you might as well just use Spring to activate the instance using it&#039;s XmlObjectFactory or ApplicationContext so that you don&#039;t have to write the activation code yourself :)</description>
		<content:encoded><![CDATA[<p>Great post!  One thing though&#8230;</p>
<p>If you&#8217;re going to add a configuration item to influence which IFontDialog that the FontDialogFactory will create, why not just put the class name of the font dialog in the config and then instantiate it using the System.Reflection.Actovator?  This will free your code from external environmental conditions, and will know couple Cyclomatic Complexity points off of the GetFontDialog method.</p>
<p>And&#8230; if you add the class name to configuration, you might as well just use Spring to activate the instance using it&#8217;s XmlObjectFactory or ApplicationContext so that you don&#8217;t have to write the activation code yourself :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
