<?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: TDD: Testing delegation</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/11/27/tdd-testing-delegation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/11/27/tdd-testing-delegation/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 31 Jul 2010 12:46:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Literal Laws &#171; I Built His Cage</title>
		<link>http://www.markhneedham.com/blog/2009/11/27/tdd-testing-delegation/comment-page-1/#comment-31060</link>
		<dc:creator>Literal Laws &#171; I Built His Cage</dc:creator>
		<pubDate>Thu, 28 Jan 2010 03:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1879#comment-31060</guid>
		<description>[...] Mark Needham has blogged in the past about using TDD on delegation. However, the post is mostly about unit-testing such objects, not writing the tests first in order [...]</description>
		<content:encoded><![CDATA[<p>[...] Mark Needham has blogged in the past about using TDD on delegation. However, the post is mostly about unit-testing such objects, not writing the tests first in order [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Dunn</title>
		<link>http://www.markhneedham.com/blog/2009/11/27/tdd-testing-delegation/comment-page-1/#comment-27354</link>
		<dc:creator>Matt Dunn</dc:creator>
		<pubDate>Sun, 29 Nov 2009 02:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1879#comment-27354</guid>
		<description>Similarly to what you&#039;re saying, I&#039;ve found interaction-based testing provides the most value in defining/describing an interaction when mocking explicit roles (and hasn&#039;t been coded yet). So using mocking to discover roles rather than substitute dependencies is where the real value lies. In light of this in your examples that use  partial mocking it makes sense to use a concrete stub instead.

I&#039;m also starting to think concrete stubs are the way to go as real code is easier to keep up to date than some of the tricks that various testing frameworks use. It depends on how powerful your tools are at to keeping up with changes though. Heres a more extreme view to mull over:

http://www.pubbitch.org/blog/2006/09/09/rules_of_engagement_for_using_mock_objects</description>
		<content:encoded><![CDATA[<p>Similarly to what you're saying, I've found interaction-based testing provides the most value in defining/describing an interaction when mocking explicit roles (and hasn't been coded yet). So using mocking to discover roles rather than substitute dependencies is where the real value lies. In light of this in your examples that use  partial mocking it makes sense to use a concrete stub instead.</p>
<p>I'm also starting to think concrete stubs are the way to go as real code is easier to keep up to date than some of the tricks that various testing frameworks use. It depends on how powerful your tools are at to keeping up with changes though. Heres a more extreme view to mull over:</p>
<p><a href="http://www.pubbitch.org/blog/2006/09/09/rules_of_engagement_for_using_mock_objects" rel="nofollow">http://www.pubbitch.org/blog/2006/09/09/rules_of_engagement_for_using_mock_objects</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #486</title>
		<link>http://www.markhneedham.com/blog/2009/11/27/tdd-testing-delegation/comment-page-1/#comment-27297</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #486</dc:creator>
		<pubDate>Fri, 27 Nov 2009 08:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1879#comment-27297</guid>
		<description>[...] TDD: Testing delegation - Mark Needham talks about the evolution of his testing style when testing delegation based code, looking at how he now perfers stubs to full mocks in this situation [...]</description>
		<content:encoded><![CDATA[<p>[...] TDD: Testing delegation &#8211; Mark Needham talks about the evolution of his testing style when testing delegation based code, looking at how he now perfers stubs to full mocks in this situation [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
