<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Why mocking is good</title>
	<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/</link>
	<description>Works on my machine</description>
	<pubDate>Thu, 04 Dec 2008 01:03:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Jesse</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3037</link>
		<author>Jesse</author>
		<pubDate>Tue, 01 Jul 2008 12:27:25 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3037</guid>
					<description>as usual, clear and to the point.  Now you got me interested in it Jon!</description>
		<content:encoded><![CDATA[<p>as usual, clear and to the point.  Now you got me interested in it Jon!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: lior</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3038</link>
		<author>lior</author>
		<pubDate>Wed, 02 Jul 2008 06:15:12 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3038</guid>
					<description>This is a really good post. It is very clear on introduing the need for mocking. One thing I would add though is that eventually some tests should hit the DB (integration tests).</description>
		<content:encoded><![CDATA[<p>This is a really good post. It is very clear on introduing the need for mocking. One thing I would add though is that eventually some tests should hit the DB (integration tests).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jon Kruger</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3039</link>
		<author>Jon Kruger</author>
		<pubDate>Wed, 02 Jul 2008 12:56:04 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3039</guid>
					<description>@lior,

Great point.  I usually write a really simple integration test that will save something and load it (but not test any validation rules).  You'll run into some of the pain that I mentioned in this post, but there is value in that.  This is especially true with LINQ to SQL -- you can write LINQ code that does a query and it will compile, but that doesn't mean that the query will be able to be converted to SQL.</description>
		<content:encoded><![CDATA[<p>@lior,</p>
<p>Great point.  I usually write a really simple integration test that will save something and load it (but not test any validation rules).  You&#8217;ll run into some of the pain that I mentioned in this post, but there is value in that.  This is especially true with LINQ to SQL &#8212; you can write LINQ code that does a query and it will compile, but that doesn&#8217;t mean that the query will be able to be converted to SQL.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Kalpesh</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3041</link>
		<author>Kalpesh</author>
		<pubDate>Wed, 02 Jul 2008 22:04:05 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3041</guid>
					<description>Jon,

Thanks for the post.
A code example would be good for person like me to understand mocking. 

And then, do you change your tests once the db &#38; active directory come into being?
OR 
do you continue using mocking and the tests use mock objects?</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>Thanks for the post.<br />
A code example would be good for person like me to understand mocking. </p>
<p>And then, do you change your tests once the db &amp; active directory come into being?<br />
OR<br />
do you continue using mocking and the tests use mock objects?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Kalpesh</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3042</link>
		<author>Kalpesh</author>
		<pubDate>Wed, 02 Jul 2008 22:11:31 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3042</guid>
					<description>Jon,

if you write a reply to this post, copy it to me at my email address.

Thanks :)</description>
		<content:encoded><![CDATA[<p>Jon,</p>
<p>if you write a reply to this post, copy it to me at my email address.</p>
<p>Thanks :)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jon Kruger</title>
		<link>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3043</link>
		<author>Jon Kruger</author>
		<pubDate>Thu, 03 Jul 2008 01:55:57 +0000</pubDate>
		<guid>http://jonkruger.com/blog/2008/06/30/why-mocking-is-good/#comment-3043</guid>
					<description>@Kalpesh,

There are some good code examples here:
http://aspalliance.com/1400_Beginning_to_Mock_with_Rhino_Mocks_and_MbUnit__Part_1

The point of mocking is not to account for the database or Active Directory not being there, in most cases those things are there when you're writing the tests.  The point is that I don't necessarily need those external dependencies to be involved in the test because I'm just testing some piece of logic in the code.</description>
		<content:encoded><![CDATA[<p>@Kalpesh,</p>
<p>There are some good code examples here:<br />
<a href="http://aspalliance.com/1400_Beginning_to_Mock_with_Rhino_Mocks_and_MbUnit__Part_1" rel="nofollow">http://aspalliance.com/1400_Beginning_to_Mock_with_Rhino_Mocks_and_MbUnit__Part_1</a></p>
<p>The point of mocking is not to account for the database or Active Directory not being there, in most cases those things are there when you&#8217;re writing the tests.  The point is that I don&#8217;t necessarily need those external dependencies to be involved in the test because I&#8217;m just testing some piece of logic in the code.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
