<?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>JLCoady.net &#187; NMock</title>
	<atom:link href="http://jlcoady.net/tag/nmock/feed" rel="self" type="application/rss+xml" />
	<link>http://jlcoady.net</link>
	<description></description>
	<lastBuildDate>Mon, 18 Oct 2010 20:37:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Loose expectations with NMock2</title>
		<link>http://jlcoady.net/testing/loose-expectations-nmock2</link>
		<comments>http://jlcoady.net/testing/loose-expectations-nmock2#comments</comments>
		<pubDate>Thu, 23 Nov 2006 07:00:42 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[NMock]]></category>

		<guid isPermaLink="false">http://blog.jlcoady.net/?p=20</guid>
		<description><![CDATA[NMock2 will have a verification failure if all expected calls are not made and if any unexpected calls are made. That last bit can make writing test code rather tedious. I have a presenter and I&#8217;m testing its normal path using a bunch of calls like the following: Expect.Once.On(view).GetProperty(&#34;Name&#34;).Will(Return.Value(&#34;Widget&#34;)); Expect.Once.On(view).GetProperty(&#34;Quantity&#34;).Will(Return.Value(3)); Expect.Once.On(view).GetProperty(&#34;Price&#34;).Will(Return.Value(9.95m)); Expect.Once.On(view).Method(&#34;ShowTotal&#34;).With(29.85m); That&#8217;s all good, [...]]]></description>
		<wfw:commentRss>http://jlcoady.net/testing/loose-expectations-nmock2/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

