<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Tutorial to TDD using Rhino Mocks and SystemWrapper.</title>
	<atom:link href="http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/</link>
	<description>Never stop learning.</description>
	<lastBuildDate>Fri, 18 Dec 2009 16:34:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vadim</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-635</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Wed, 13 May 2009 21:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-635</guid>
		<description>Andrian,

You can get sample code from http://systemwrapper.codeplex.com/SourceControl/ListDownloadableCommits.aspx.  All samples in .Net 3.5.  In .Net 2.0 on of the example is going to look something like this:

        [Test]
        public void When_try_to_create_directory_that_does_not_exist_return_true_dot_NET_2()
        {
            IDirectoryInfoWrap directoryInfoStub = 
MockRepository.GenerateStub();
            RhinoMocksExtensions.Stub(directoryInfoStub,
                delegate(IDirectoryInfoWrap dirInfo)
                {
                    bool b = dirInfo.Exists;
                }).Return(false);
            Assert.AreEqual(true, new DirectoryInfoSample().TryToCreateDirectory(directoryInfoStub));
            RhinoMocksExtensions.AssertWasCalled(directoryInfoStub,
                delegate(IDirectoryInfoWrap dirInfo)
                {
                    dirInfo.Create();
                });
        }</description>
		<content:encoded><![CDATA[<p>Andrian,</p>
<p>You can get sample code from <a href="http://systemwrapper.codeplex.com/SourceControl/ListDownloadableCommits.aspx" rel="nofollow">http://systemwrapper.codeplex.com/SourceControl/ListDownloadableCommits.aspx</a>.  All samples in .Net 3.5.  In .Net 2.0 on of the example is going to look something like this:</p>
<p>        [Test]<br />
        public void When_try_to_create_directory_that_does_not_exist_return_true_dot_NET_2()<br />
        {<br />
            IDirectoryInfoWrap directoryInfoStub =<br />
MockRepository.GenerateStub();<br />
            RhinoMocksExtensions.Stub(directoryInfoStub,<br />
                delegate(IDirectoryInfoWrap dirInfo)<br />
                {<br />
                    bool b = dirInfo.Exists;<br />
                }).Return(false);<br />
            Assert.AreEqual(true, new DirectoryInfoSample().TryToCreateDirectory(directoryInfoStub));<br />
            RhinoMocksExtensions.AssertWasCalled(directoryInfoStub,<br />
                delegate(IDirectoryInfoWrap dirInfo)<br />
                {<br />
                    dirInfo.Create();<br />
                });<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Zhao</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-634</link>
		<dc:creator>Adrian Zhao</dc:creator>
		<pubDate>Wed, 13 May 2009 12:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-634</guid>
		<description>Vadim:

Great tutorial.  Could you send me the .Net 2.0 example code?

Thanks,
Adrian</description>
		<content:encoded><![CDATA[<p>Vadim:</p>
<p>Great tutorial.  Could you send me the .Net 2.0 example code?</p>
<p>Thanks,<br />
Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunit Joshi</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-622</link>
		<dc:creator>Sunit Joshi</dc:creator>
		<pubDate>Tue, 21 Apr 2009 21:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-622</guid>
		<description>Very informational and clear. Hope to see more.

rgds
Sunit</description>
		<content:encoded><![CDATA[<p>Very informational and clear. Hope to see more.</p>
<p>rgds<br />
Sunit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-617</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Sat, 04 Apr 2009 21:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-617</guid>
		<description>Iain,  
Thanks a lot for submitting a patch.  I added you as a developer on the project so feel free to commit any changes.</description>
		<content:encoded><![CDATA[<p>Iain,<br />
Thanks a lot for submitting a patch.  I added you as a developer on the project so feel free to commit any changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-616</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Sat, 04 Apr 2009 17:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-616</guid>
		<description>Great tutorial, I have come across this issue many times and SystemWrapper nicely solves it.

I have added a few more classes for System.IO - see the patch on &lt;a href=&quot;http://systemwrapper.codeplex.com/WorkItem/View.aspx?WorkItemId=9649&quot; rel=&quot;nofollow&quot;&gt;codeplex&lt;/a&gt;.

Using the &lt;a href=&quot;http://funq.codeplex.com/&quot; rel=&quot;nofollow&quot;&gt;Funq&lt;/a&gt; DI container, it is also possible to wrap classes which require parameters to the constructor (MemoryStream etc.).</description>
		<content:encoded><![CDATA[<p>Great tutorial, I have come across this issue many times and SystemWrapper nicely solves it.</p>
<p>I have added a few more classes for System.IO &#8211; see the patch on <a href="http://systemwrapper.codeplex.com/WorkItem/View.aspx?WorkItemId=9649" rel="nofollow">codeplex</a>.</p>
<p>Using the <a href="http://funq.codeplex.com/" rel="nofollow">Funq</a> DI container, it is also possible to wrap classes which require parameters to the constructor (MemoryStream etc.).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-603</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Sat, 07 Mar 2009 11:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-603</guid>
		<description>Damian, thanks</description>
		<content:encoded><![CDATA[<p>Damian, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-602</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Sat, 07 Mar 2009 05:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2008/12/04/tutorial-to-tdd-using-rhino-mocks-and-systemwrapper/#comment-602</guid>
		<description>Great tutorial.. Well structured and easy to understand, while still giving a solid coverage of the fundamentals..</description>
		<content:encoded><![CDATA[<p>Great tutorial.. Well structured and easy to understand, while still giving a solid coverage of the fundamentals..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
