<?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: Testing Private &amp; Protected Members of a Class</title>
	<atom:link href="http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/</link>
	<description></description>
	<lastBuildDate>Mon, 03 Jun 2013 06:05:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: arialnormalg</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-103</link>
		<dc:creator>arialnormalg</dc:creator>
		<pubDate>Wed, 09 Dec 2009 15:40:45 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-103</guid>
		<description> &lt;a href=&quot;http://www.bmbvideo.com/propecia.html&quot;&gt;propecia online&lt;/a&gt; [url=&quot;http://www.bmbvideo.com/propecia.html&quot;]propecia online[/url] http://www.bmbvideo.com/propecia.html propecia online   &lt;a href=&quot;http://www.bmbvideo.com/ambien.html&quot;&gt;buy ambien&lt;/a&gt; [url=&quot;http://www.bmbvideo.com/ambien.html&quot;]buy ambien[/url] http://www.bmbvideo.com/ambien.html buy ambien   &lt;a href=&quot;http://www.bowlinginlubbock.com/Acomplia.htm&quot;&gt;order acomplia&lt;/a&gt; [url=&quot;http://www.bowlinginlubbock.com/Acomplia.htm&quot;]order acomplia[/url] http://www.bowlinginlubbock.com/Acomplia.htm order acomplia   </description>
		<content:encoded><![CDATA[<p> <a href="http://www.bmbvideo.com/propecia.html">propecia online</a> [url="http://www.bmbvideo.com/propecia.html"]propecia online[/url] <a href="http://www.bmbvideo.com/propecia.html" rel="nofollow">http://www.bmbvideo.com/propecia.html</a> propecia online   <a href="http://www.bmbvideo.com/ambien.html">buy ambien</a> [url="http://www.bmbvideo.com/ambien.html"]buy ambien[/url] <a href="http://www.bmbvideo.com/ambien.html" rel="nofollow">http://www.bmbvideo.com/ambien.html</a> buy ambien   <a href="http://www.bowlinginlubbock.com/Acomplia.htm">order acomplia</a> [url="http://www.bowlinginlubbock.com/Acomplia.htm"]order acomplia[/url] <a href="http://www.bowlinginlubbock.com/Acomplia.htm" rel="nofollow">http://www.bowlinginlubbock.com/Acomplia.htm</a> order acomplia   </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcteague</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-102</link>
		<dc:creator>jcteague</dc:creator>
		<pubDate>Sun, 30 Aug 2009 02:30:25 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-102</guid>
		<description>@Jason
I liked your post.  It reminded me of something I should have mentioned in my original post.  I guess that means I should write a new one huh?</description>
		<content:encoded><![CDATA[<p>@Jason<br />
I liked your post.  It reminded me of something I should have mentioned in my original post.  I guess that means I should write a new one huh?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Baker</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-101</link>
		<dc:creator>Jason Baker</dc:creator>
		<pubDate>Sat, 29 Aug 2009 20:40:55 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-101</guid>
		<description>Interesting post.  I&#039;ve outlined a few ways of looking at the &quot;how do I test private methods&quot; question here:  http://jasonmbaker.wordpress.com/2009/01/08/enemies-of-test-driven-development-part-i-encapsulation/</description>
		<content:encoded><![CDATA[<p>Interesting post.  I&#8217;ve outlined a few ways of looking at the &#8220;how do I test private methods&#8221; question here:  <a href="http://jasonmbaker.wordpress.com/2009/01/08/enemies-of-test-driven-development-part-i-encapsulation/" rel="nofollow">http://jasonmbaker.wordpress.com/2009/01/08/enemies-of-test-driven-development-part-i-encapsulation/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcteague</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-100</link>
		<dc:creator>jcteague</dc:creator>
		<pubDate>Sat, 29 Aug 2009 18:13:33 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-100</guid>
		<description>@ctasada
yes, reflection is an option.  MSTest actually creates a helper class for you that gives you access to all of your methdods for you.

However I agree with the comment pablo made that if they are really that complex, chances are you&#039;re missing an abstraction somewhere in your design.</description>
		<content:encoded><![CDATA[<p>@ctasada<br />
yes, reflection is an option.  MSTest actually creates a helper class for you that gives you access to all of your methdods for you.</p>
<p>However I agree with the comment pablo made that if they are really that complex, chances are you&#8217;re missing an abstraction somewhere in your design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctasada</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-99</link>
		<dc:creator>ctasada</dc:creator>
		<pubDate>Sat, 29 Aug 2009 17:16:35 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-99</guid>
		<description>You can find a different approach for the same problem here:

http://ctasada.blogspot.com/2009/08/junit-how-to-test-your-private-methods.html
</description>
		<content:encoded><![CDATA[<p>You can find a different approach for the same problem here:</p>
<p><a href="http://ctasada.blogspot.com/2009/08/junit-how-to-test-your-private-methods.html" rel="nofollow">http://ctasada.blogspot.com/2009/08/junit-how-to-test-your-private-methods.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcteague</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-98</link>
		<dc:creator>jcteague</dc:creator>
		<pubDate>Fri, 28 Aug 2009 14:19:50 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-98</guid>
		<description>@pablo
That&#039;s absolutely true.  The times when I needed to test a protected member I&#039;m sure I was violating SRP. The most recent need for me to do so was overrided a member on the Controller class.  I&#039;m not sure I had a way to do in a way without violating SRP since I do not own the Controller class.</description>
		<content:encoded><![CDATA[<p>@pablo<br />
That&#8217;s absolutely true.  The times when I needed to test a protected member I&#8217;m sure I was violating SRP. The most recent need for me to do so was overrided a member on the Controller class.  I&#8217;m not sure I had a way to do in a way without violating SRP since I do not own the Controller class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://lostechies.com/johnteague/2009/08/28/testing-private-amp-protected-members-of-a-class/#comment-97</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Fri, 28 Aug 2009 07:29:17 +0000</pubDate>
		<guid isPermaLink="false">/blogs/johnteague/archive/2009/08/28/testing-private-amp-protected-members-of-a-class.aspx#comment-97</guid>
		<description>I asked you this question yesterday and in the meantime @KentBeck replied to my tweet about that too.

His words: http://twitter.com/KentBeck/status/3579860805
@pablogl i only test public methods. if a private method is complex enough to need testing, it generally needs its own object.

In other words, if the private/protected method is really so important that you have to test it, then perhaps we are violating the Single Responsibility Principle. </description>
		<content:encoded><![CDATA[<p>I asked you this question yesterday and in the meantime @KentBeck replied to my tweet about that too.</p>
<p>His words: <a href="http://twitter.com/KentBeck/status/3579860805" rel="nofollow">http://twitter.com/KentBeck/status/3579860805</a><br />
@pablogl i only test public methods. if a private method is complex enough to need testing, it generally needs its own object.</p>
<p>In other words, if the private/protected method is really so important that you have to test it, then perhaps we are violating the Single Responsibility Principle. </p>
]]></content:encoded>
	</item>
</channel>
</rss>
