<?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: MSpec and Auto Mocking</title>
	<atom:link href="http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mspec-and-auto-mocking</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 23:42:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Awkward Coder &#187; How to MSpec?</title>
		<link>http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/comment-page-1/#comment-56039</link>
		<dc:creator>Awkward Coder &#187; How to MSpec?</dc:creator>
		<pubDate>Tue, 13 Apr 2010 22:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/#comment-56039</guid>
		<description>[...] MSpec and Auto Mocking [...]</description>
		<content:encoded><![CDATA[<p>[...] MSpec and Auto Mocking [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/comment-page-1/#comment-53993</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Wed, 24 Feb 2010 15:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/#comment-53993</guid>
		<description>No problem - not harshing you in any way.  Our code benefits from alternate perspectives and the continuing conversation.

On a separate note, I wanted to forewarn you that the automocker&#039;s &lt;code&gt;ClassUnderTest &lt;/code&gt;object is immutable once created; therefore, its dependencies are immutable as well.  (Calling the &lt;code&gt;PartialMockTheClassUnderTest()&lt;/code&gt; method also creates or replaces the &lt;code&gt;ClassUnderTest &lt;/code&gt;object.)  Since you are explicitly creating it in your Establish block in the base class (&lt;code&gt;_rhinoAutoMocker.ClassUnderTest&lt;/code&gt;), you would never be able to inject your own dependencies. Instead, you would only get the dependencies RhinoMocks created for you.  This caused a little havoc for me when my specs were not behaving as expected when I was trying to partial mock the class as a convention.</description>
		<content:encoded><![CDATA[<p>No problem &#8211; not harshing you in any way.  Our code benefits from alternate perspectives and the continuing conversation.</p>
<p>On a separate note, I wanted to forewarn you that the automocker&#8217;s <code>ClassUnderTest </code>object is immutable once created; therefore, its dependencies are immutable as well.  (Calling the <code>PartialMockTheClassUnderTest()</code> method also creates or replaces the <code>ClassUnderTest </code>object.)  Since you are explicitly creating it in your Establish block in the base class (<code>_rhinoAutoMocker.ClassUnderTest</code>), you would never be able to inject your own dependencies. Instead, you would only get the dependencies RhinoMocks created for you.  This caused a little havoc for me when my specs were not behaving as expected when I was trying to partial mock the class as a convention.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Van Ryswyck</title>
		<link>http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/comment-page-1/#comment-53981</link>
		<dc:creator>Jan Van Ryswyck</dc:creator>
		<pubDate>Wed, 24 Feb 2010 06:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/#comment-53981</guid>
		<description>Didn&#039;t know there was already a post on this blog. Will give it a thorough read.</description>
		<content:encoded><![CDATA[<p>Didn&#8217;t know there was already a post on this blog. Will give it a thorough read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Cirerol</title>
		<link>http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/comment-page-1/#comment-53980</link>
		<dc:creator>Richard Cirerol</dc:creator>
		<pubDate>Wed, 24 Feb 2010 05:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2010/02/23/mspec-and-auto-mocking/#comment-53980</guid>
		<description>Jan, I can&#039;t imagine doing tdd/bdd without MSpec and Automocking.  I &lt;a href=&quot;http://elegantcode.com/2009/11/30/wrapping-up-the-structuremap-automocking-container/&quot; rel=&quot;nofollow&quot;&gt;wrapped up the automocker&lt;/a&gt; as well.  Glad to see I wasn&#039;t alone in my thinking. Looking forward to the rest of your MSpec posts.</description>
		<content:encoded><![CDATA[<p>Jan, I can&#8217;t imagine doing tdd/bdd without MSpec and Automocking.  I <a href="http://elegantcode.com/2009/11/30/wrapping-up-the-structuremap-automocking-container/" rel="nofollow">wrapped up the automocker</a> as well.  Glad to see I wasn&#8217;t alone in my thinking. Looking forward to the rest of your MSpec posts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

