<?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: Refactoring Code to enable Unit Testing</title>
	<atom:link href="http://nizarnoorani.com/index.php/archives/173/feed" rel="self" type="application/rss+xml" />
	<link>http://nizarnoorani.com/index.php/archives/173</link>
	<description></description>
	<lastBuildDate>Thu, 15 Dec 2011 18:31:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Mitchell Muzzey</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-7464</link>
		<dc:creator>Mitchell Muzzey</dc:creator>
		<pubDate>Fri, 18 Feb 2011 00:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-7464</guid>
		<description>Nice post. The information presented here was the best I could discover all day long, and I have been searching hard on the Internet. I believe you ought to put this up on a large social bookmarking site, you will discover that it spreads like wildfire - Cheers - dave</description>
		<content:encoded><![CDATA[<p>Nice post. The information presented here was the best I could discover all day long, and I have been searching hard on the Internet. I believe you ought to put this up on a large social bookmarking site, you will discover that it spreads like wildfire &#8211; Cheers &#8211; dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizar</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6353</link>
		<dc:creator>Nizar</dc:creator>
		<pubDate>Sun, 07 Feb 2010 19:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6353</guid>
		<description>Yes, you&#039;re right.  Thanking you for pointing that out.  I&#039;ll make the correction.</description>
		<content:encoded><![CDATA[<p>Yes, you&#8217;re right.  Thanking you for pointing that out.  I&#8217;ll make the correction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krislig</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6333</link>
		<dc:creator>krislig</dc:creator>
		<pubDate>Sat, 06 Feb 2010 11:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6333</guid>
		<description>How do you inject mock objects? Because I don&#039;t see them in constructor or method call in tests code.

I think that assert should be something like this:

CustomerService svc = new CustomerService(123, custManager.Object);
Assert.IsTrue(svc.CanPurchaseProduct(1, prodService.Object));

Correct me if I&#039;am wrong.</description>
		<content:encoded><![CDATA[<p>How do you inject mock objects? Because I don&#8217;t see them in constructor or method call in tests code.</p>
<p>I think that assert should be something like this:</p>
<p>CustomerService svc = new CustomerService(123, custManager.Object);<br />
Assert.IsTrue(svc.CanPurchaseProduct(1, prodService.Object));</p>
<p>Correct me if I&#8217;am wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizar</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6316</link>
		<dc:creator>Nizar</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6316</guid>
		<description>To be clear refactoring should be done often and whenever necessary.  A general rule of thumb is: If you&#039;ve had to workaround a piece of code for more than 3 times, it&#039;s probably time to refactor it.  In this post, I am simply pointing how refactoring can be used to make existing code unit-testable.</description>
		<content:encoded><![CDATA[<p>To be clear refactoring should be done often and whenever necessary.  A general rule of thumb is: If you&#8217;ve had to workaround a piece of code for more than 3 times, it&#8217;s probably time to refactor it.  In this post, I am simply pointing how refactoring can be used to make existing code unit-testable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6308</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6308</guid>
		<description>Hey. I don&#039;t normally leave comments, but I just wanted to say thanks for the great information. I have a blog too, though
I don&#039;t write as good as you do, but if you want to check it out here it is. Thanks again and have a great day!

&lt;a href=&quot;http://www.associatedcontent.com/article/2409354/_commercial_carpenters_tool_list.html?cat=31&quot; rel=&quot;nofollow&quot;&gt;Commercial Carpenter&#039;s Tool List&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hey. I don&#8217;t normally leave comments, but I just wanted to say thanks for the great information. I have a blog too, though<br />
I don&#8217;t write as good as you do, but if you want to check it out here it is. Thanks again and have a great day!</p>
<p><a href="http://www.associatedcontent.com/article/2409354/_commercial_carpenters_tool_list.html?cat=31" rel="nofollow">Commercial Carpenter&#8217;s Tool List</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6301</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Wed, 03 Feb 2010 12:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6301</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Facebook by Gil Zilberfeld: Reading (and weeping): Refactoring for Unit Testing http://nizarnoorani.com/index.php/archives/173 (just for testing? why?)...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Facebook by Gil Zilberfeld: Reading (and weeping): Refactoring for Unit Testing <a href="http://nizarnoorani.com/index.php/archives/173" rel="nofollow">http://nizarnoorani.com/index.php/archives/173</a> (just for testing? why?)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SMiGL</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6300</link>
		<dc:creator>SMiGL</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6300</guid>
		<description>Intresting post. Thanks</description>
		<content:encoded><![CDATA[<p>Intresting post. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morning Brew - Chris Alcock &#187; The Morning Brew #531</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6299</link>
		<dc:creator>The Morning Brew - Chris Alcock &#187; The Morning Brew #531</dc:creator>
		<pubDate>Wed, 03 Feb 2010 08:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6299</guid>
		<description>[...] Refactoring for Unit Testing - Nizar Noorani looks at some of the process of refactoring a legacy code base to allow it to be better unit tested, working through a simple example to show the changes needed to test the example code. [...]</description>
		<content:encoded><![CDATA[<p>[...] Refactoring for Unit Testing &#8211; Nizar Noorani looks at some of the process of refactoring a legacy code base to allow it to be better unit tested, working through a simple example to show the changes needed to test the example code. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://nizarnoorani.com/index.php/archives/173/comment-page-1#comment-6294</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Tue, 02 Feb 2010 16:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://nizarnoorani.com/?p=173#comment-6294</guid>
		<description>&lt;strong&gt;Nizar’s .NET Blog » Refactoring for Unit Testing...&lt;/strong&gt;

Thank you for submitting this cool story - Trackback from DotNetShoutout...</description>
		<content:encoded><![CDATA[<p><strong>Nizar’s .NET Blog » Refactoring for Unit Testing&#8230;</strong></p>
<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  nizarnoorani.com/index.php/archives/173/feed ) in 0.36823 seconds, on Feb 5th, 2012 at 7:48 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 8:48 am UTC -->
