<?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: Unit Testing HtmlHelpers</title>
	<atom:link href="http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/</link>
	<description>All about Matt Penner - blog, work experience, project portfolio, skills, etc</description>
	<lastBuildDate>Sun, 06 May 2012 20:19:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Matt Penner</title>
		<link>http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/comment-page-1/#comment-272</link>
		<dc:creator>Matt Penner</dc:creator>
		<pubDate>Fri, 09 Oct 2009 22:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/#comment-272</guid>
		<description>Justin,
Thanks for the comment.  You are completely correct, however, since I didn&#039;t need to make use of any of the HtmlHelper members I didn&#039;t bother to create a fake object for the class.

If you do need to make use of the members then you should be able to use one of the popular fake object frameworks to create a stub or mock of the HtmlHelper class.</description>
		<content:encoded><![CDATA[<p>Justin,<br />
Thanks for the comment.  You are completely correct, however, since I didn&#8217;t need to make use of any of the HtmlHelper members I didn&#8217;t bother to create a fake object for the class.</p>
<p>If you do need to make use of the members then you should be able to use one of the popular fake object frameworks to create a stub or mock of the HtmlHelper class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Holzer</title>
		<link>http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/comment-page-1/#comment-271</link>
		<dc:creator>Justin Holzer</dc:creator>
		<pubDate>Fri, 09 Oct 2009 21:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/#comment-271</guid>
		<description>Your example of testing HtmlHelper extension methods, unfortunately, does not apply to methods that will actually use properties and methods of the HtmlHelper class. In your case, you are simply calling your method statically, passing in a null HtmlHelper reference. Your case is very simple, but in many cases, where you would be using the HtmlHelper object, you would need to provide quite a good deal of mocking/stubbing in order for that to work properly.</description>
		<content:encoded><![CDATA[<p>Your example of testing HtmlHelper extension methods, unfortunately, does not apply to methods that will actually use properties and methods of the HtmlHelper class. In your case, you are simply calling your method statically, passing in a null HtmlHelper reference. Your case is very simple, but in many cases, where you would be using the HtmlHelper object, you would need to provide quite a good deal of mocking/stubbing in order for that to work properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: software developer</title>
		<link>http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/comment-page-1/#comment-267</link>
		<dc:creator>software developer</dc:creator>
		<pubDate>Mon, 17 Aug 2009 16:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://mattpenner.info/2008/11/13/unit-testing-htmlhelpers/#comment-267</guid>
		<description>Hey, that was interesting,

Thanks for bringing this up</description>
		<content:encoded><![CDATA[<p>Hey, that was interesting,</p>
<p>Thanks for bringing this up</p>
]]></content:encoded>
	</item>
</channel>
</rss>

