<?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: How to Unit Test a Data Module</title>
	<atom:link href="http://blogs.teamb.com/craigstuntz/2009/01/09/37912/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.teamb.com/craigstuntz/2009/01/09/37912/</link>
	<description>C# • Entity Framework • Functional Programming • MVC • Web</description>
	<pubDate>Sun, 12 Feb 2012 05:00:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Craig Stuntz</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/01/09/37912/#comment-4270</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Mon, 12 Jan 2009 20:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=37912#comment-4270</guid>
		<description>Lachlan, that's a bigger topic than I can address in a comment, so I will write a post about it.</description>
		<content:encoded><![CDATA[<p>Lachlan, that&#8217;s a bigger topic than I can address in a comment, so I will write a post about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lachlan Gemmell</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/01/09/37912/#comment-4252</link>
		<dc:creator>Lachlan Gemmell</dc:creator>
		<pubDate>Sat, 10 Jan 2009 05:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=37912#comment-4252</guid>
		<description>Interesting. I haven't used that approach before. Personally I'm a bit of a visibility pedant (yes I'm the one guy who uses the strict keyword) so I don't think I'm likely to use it very often.

In general I don't unit test private methods, instead relying on my tests of the public methods, but when I do I've usually created my test cases in the same unit as the class I'm testing. Of course since my new favourite keyword "strict" appeared on the scene that technique isn't as useful for me as it once was.

And of course there's always {$IFDEF TESTING}public{ELSE}private{$ENDIF}. Yuck!</description>
		<content:encoded><![CDATA[<p>Interesting. I haven&#8217;t used that approach before. Personally I&#8217;m a bit of a visibility pedant (yes I&#8217;m the one guy who uses the strict keyword) so I don&#8217;t think I&#8217;m likely to use it very often.</p>
<p>In general I don&#8217;t unit test private methods, instead relying on my tests of the public methods, but when I do I&#8217;ve usually created my test cases in the same unit as the class I&#8217;m testing. Of course since my new favourite keyword "strict" appeared on the scene that technique isn&#8217;t as useful for me as it once was.</p>
<p>And of course there&#8217;s always {$IFDEF TESTING}public{ELSE}private{$ENDIF}. Yuck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Stuntz</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/01/09/37912/#comment-4250</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Sat, 10 Jan 2009 03:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=37912#comment-4250</guid>
		<description>Lachlan, &lt;a href="http://stackoverflow.com/questions/422379/dunit-testing-in-delphi-how-to-test-private-methods#422400" rel="nofollow"&gt;like this&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Lachlan, <a href="http://stackoverflow.com/questions/422379/dunit-testing-in-delphi-how-to-test-private-methods#422400" rel="nofollow">like this</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lachlan Gemmell</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/01/09/37912/#comment-4249</link>
		<dc:creator>Lachlan Gemmell</dc:creator>
		<pubDate>Sat, 10 Jan 2009 02:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=37912#comment-4249</guid>
		<description>I'm interested in how you typically solve the issues around visibility to the TestMyDM class of functions such as your TMyDM.CalcEarnings?</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in how you typically solve the issues around visibility to the TestMyDM class of functions such as your TMyDM.CalcEarnings?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

