<?xml version="1.0" encoding="UTF-8"?>
<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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>D2Coding &#187; Mocks</title>
	<atom:link href="http://www.D2Coding.com/tag/mocks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.D2Coding.com</link>
	<description></description>
	<lastBuildDate>Sun, 23 May 2010 03:06:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Difference Between Mocks and Stubs</title>
		<link>http://www.D2Coding.com/2009/06/10/the-difference-between-mocks-and-stubs/</link>
		<comments>http://www.D2Coding.com/2009/06/10/the-difference-between-mocks-and-stubs/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 04:59:59 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Fowler]]></category>
		<category><![CDATA[Mocks]]></category>
		<category><![CDATA[Stubs]]></category>

		<guid isPermaLink="false">http://www.D2Coding.com/?p=63</guid>
		<description><![CDATA[Found this Fowler article pretty insightful when thinking about the difference between mocks and stubs. New to the mocking scene, I didn&#8217;t understand the difference at first, but the latter part of the portion I have linked to states that  Mocks are used to validate behavior whilst Stubs are used to validate state . Looking at the two example tests, the difference between the two types of tests becomes readily apparent. One tests the certain methods fired, and the other tests that properties of an object contain the values ...]]></description>
			<content:encoded><![CDATA[<p>Found this Fowler article pretty insightful when thinking about the difference between mocks and stubs. New to the mocking scene, I didn&#8217;t understand the difference at first, but the latter part of the portion I have linked to states that <span id="more-63"></span> Mocks are used to validate <em>behavior</em> whilst Stubs are used to validate <em>state</em> . Looking at the two example tests, the difference between the two types of tests becomes readily apparent. One tests the certain methods fired, and the other tests that properties of an object contain the values that we thought they should be.</p>
<p><a href="http://www.martinfowler.com/articles/mocksArentStubs.html#TheDifferenceBetweenMocksAndStubs">http://www.martinfowler.com/articles/mocksArentStubs.html#TheDifferenceBetweenMocksAndStubs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.D2Coding.com/2009/06/10/the-difference-between-mocks-and-stubs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
