<?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"
	>
<channel>
	<title>Comments on: Using Mock Objects When Testing LINQ Code</title>
	<atom:link href="http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/</link>
	<description>Closed weekends and holidays.</description>
	<pubDate>Sat, 17 May 2008 14:57:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Andrew Matthews</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20406</link>
		<dc:creator>Andrew Matthews</dc:creator>
		<pubDate>Thu, 21 Feb 2008 01:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20406</guid>
		<description>Jeremy - good luck. The investment will be worth it.</description>
		<content:encoded><![CDATA[<p>Jeremy - good luck. The investment will be worth it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Holt</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20402</link>
		<dc:creator>Jeremy Holt</dc:creator>
		<pubDate>Wed, 20 Feb 2008 15:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20402</guid>
		<description>Hi Andrew

Thanks for your kind words. I'm off to Amazon.com right now.

Best regards
Jeremy</description>
		<content:encoded><![CDATA[<p>Hi Andrew</p>
<p>Thanks for your kind words. I&#8217;m off to Amazon.com right now.</p>
<p>Best regards<br />
Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Matthews</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20401</link>
		<dc:creator>Andrew Matthews</dc:creator>
		<pubDate>Wed, 20 Feb 2008 02:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20401</guid>
		<description>Hi Jeremy,

Don't be too discouraged - this is the product of a lot of digging around in the undergrowth of LINQ and C# 3.0!

There are really several types of mock objects that you have at your disposal - Mocks, and Stubs are the two main types. the emphasis of unit testing is just that - to test the unit. If you test a (e.g.) business logic component, then you'll end up testing it, plus any data access code you write, plus any SQL stored procs etc in the process. Using a mock object allows you to control the environment around the component you're testing.

The wikipedia article seems like a good jumping off point. I also found the book extreme programming tools for Java quite helpful.

http://en.wikipedia.org/wiki/Unit_testing

HTH, and good luck.

Andrew</description>
		<content:encoded><![CDATA[<p>Hi Jeremy,</p>
<p>Don&#8217;t be too discouraged - this is the product of a lot of digging around in the undergrowth of LINQ and C# 3.0!</p>
<p>There are really several types of mock objects that you have at your disposal - Mocks, and Stubs are the two main types. the emphasis of unit testing is just that - to test the unit. If you test a (e.g.) business logic component, then you&#8217;ll end up testing it, plus any data access code you write, plus any SQL stored procs etc in the process. Using a mock object allows you to control the environment around the component you&#8217;re testing.</p>
<p>The wikipedia article seems like a good jumping off point. I also found the book extreme programming tools for Java quite helpful.</p>
<p><a href="http://en.wikipedia.org/wiki/Unit_testing" rel="nofollow">http://en.wikipedia.org/wiki/Unit_testing</a></p>
<p>HTH, and good luck.</p>
<p>Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Holt</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20400</link>
		<dc:creator>Jeremy Holt</dc:creator>
		<pubDate>Tue, 19 Feb 2008 20:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-20400</guid>
		<description>I am really new to this, and to my shame seem to be able to understand only a very little of "extracting interfaces" and creating "Mock contexts". I always thought I was a moderately capable coder, and recently decided to switch from VB to C#. On making the change, I also decided to do things "properly" - particularly the question of unit testing. I've got the gist of the principles of unit testing, but can't get my head around Mocking. 
I have also realized that I am nothing more than a "hobby programmer" - a bit sad after doing this "part time" for so many years. I'm working my way though "Code Complete" but in the meantime would really appreciate it if you could point me in the direction of a good book, articles etc that will throw light on this for me? My particular interest is Linq for SQL.
Many thanks in advance</description>
		<content:encoded><![CDATA[<p>I am really new to this, and to my shame seem to be able to understand only a very little of &#8220;extracting interfaces&#8221; and creating &#8220;Mock contexts&#8221;. I always thought I was a moderately capable coder, and recently decided to switch from VB to C#. On making the change, I also decided to do things &#8220;properly&#8221; - particularly the question of unit testing. I&#8217;ve got the gist of the principles of unit testing, but can&#8217;t get my head around Mocking.<br />
I have also realized that I am nothing more than a &#8220;hobby programmer&#8221; - a bit sad after doing this &#8220;part time&#8221; for so many years. I&#8217;m working my way though &#8220;Code Complete&#8221; but in the meantime would really appreciate it if you could point me in the direction of a good book, articles etc that will throw light on this for me? My particular interest is Linq for SQL.<br />
Many thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaks</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-19785</link>
		<dc:creator>Chaks</dc:creator>
		<pubDate>Thu, 03 Jan 2008 09:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-19785</guid>
		<description>I found even more effective unit testing with linq-to-sql here at Ian Cooper's post - http://iancooper.spaces.live.com/blog/cns!844BD2811F9ABE9C!397.entry?wa=wsignin1.0</description>
		<content:encoded><![CDATA[<p>I found even more effective unit testing with linq-to-sql here at Ian Cooper&#8217;s post - <a href="http://iancooper.spaces.live.com/blog/cns" rel="nofollow">http://iancooper.spaces.live.com/blog/cns</a>!844BD2811F9ABE9C!397.entry?wa=wsignin1.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaks</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-19778</link>
		<dc:creator>Chaks</dc:creator>
		<pubDate>Thu, 03 Jan 2008 06:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-19778</guid>
		<description>did u try the same with Visual Studio 2008? I am not able to do the same, as its implementing IQueryProvider and the CreateQuery too has two arguments - IQueryProvider and an Expression.

Can you please give a link to your source code too? It would be really, really helpful for me

Thanks</description>
		<content:encoded><![CDATA[<p>did u try the same with Visual Studio 2008? I am not able to do the same, as its implementing IQueryProvider and the CreateQuery too has two arguments - IQueryProvider and an Expression.</p>
<p>Can you please give a link to your source code too? It would be really, really helpful for me</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch Denny</title>
		<link>http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-9238</link>
		<dc:creator>Mitch Denny</dc:creator>
		<pubDate>Tue, 26 Jun 2007 08:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://aabs.wordpress.com/2007/06/26/using-mock-objects-when-testing-linq-code/#comment-9238</guid>
		<description>LOL. Love the name - "Mockeries"!</description>
		<content:encoded><![CDATA[<p>LOL. Love the name - &#8220;Mockeries&#8221;!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
