<?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 tests are for functionality, not code!</title>
	<atom:link href="http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html</link>
	<description>Productive software development using ASP.NET, C#, Adobe Flex, and other technologies and tools.</description>
	<lastBuildDate>Fri, 12 Mar 2010 14:26:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ricky Clarkson</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-490</link>
		<dc:creator>Ricky Clarkson</dc:creator>
		<pubDate>Sat, 14 Jun 2008 13:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-490</guid>
		<description>What is the smallest piece of code/method/function you need to write a test for?  How about the identity function, that returns its only parameter?

In Haskell, where there is no null, and no reflection, if you write a test for the identity function, how do you make it fail?</description>
		<content:encoded><![CDATA[<p>What is the smallest piece of code/method/function you need to write a test for?  How about the identity function, that returns its only parameter?</p>
<p>In Haskell, where there is no null, and no reflection, if you write a test for the identity function, how do you make it fail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unit Test Code Coverage - What Is A Good Number? - James Newton-King</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-489</link>
		<dc:creator>Unit Test Code Coverage - What Is A Good Number? - James Newton-King</dc:creator>
		<pubDate>Sat, 14 Jun 2008 09:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-489</guid>
		<description>[...] Code Coverage - What Is A Good Number?  Shawn writes that you should have 100% test code coverage, Jason agrees. Tokes, a co-worker and the one who pointed the posts out to me, [...]</description>
		<content:encoded><![CDATA[<p>[...] Code Coverage &#8211; What Is A Good Number?  Shawn writes that you should have 100% test code coverage, Jason agrees. Tokes, a co-worker and the one who pointed the posts out to me, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-486</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Fri, 13 Jun 2008 19:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-486</guid>
		<description>If your code and functionality are not relatively equivilent, then I suspect you have problems.  Either you have excess code or you have not identified all your functionality (which is why I disagree with the &quot;write just enough code to pass your tests&quot; theory; it assumes that your first pass on writing down testcases was complete).  So yes your unit tests should be testing your properties (assuming you are developing using TDD).  If not, the problem isn&#039;t that you need to add additional test cases to cover getting and setting those properties.  Its that you need to add additional test cases to cover the functionality that uses those properties (unless you just put them in there for no reason).</description>
		<content:encoded><![CDATA[<p>If your code and functionality are not relatively equivilent, then I suspect you have problems.  Either you have excess code or you have not identified all your functionality (which is why I disagree with the &#8220;write just enough code to pass your tests&#8221; theory; it assumes that your first pass on writing down testcases was complete).  So yes your unit tests should be testing your properties (assuming you are developing using TDD).  If not, the problem isn&#8217;t that you need to add additional test cases to cover getting and setting those properties.  Its that you need to add additional test cases to cover the functionality that uses those properties (unless you just put them in there for no reason).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geek Daily &#187; Blog Archive &#187; Friday Roundup for June 13, 2008</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-483</link>
		<dc:creator>Geek Daily &#187; Blog Archive &#187; Friday Roundup for June 13, 2008</dc:creator>
		<pubDate>Fri, 13 Jun 2008 15:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-483</guid>
		<description>[...] Unit tests are for functionality, not code! The prevailing philosophy in regards to unit testing is writing your tests before your code. In practice, this happens a lot less than it should. Why should we write our unit tests first? [...]</description>
		<content:encoded><![CDATA[<p>[...] Unit tests are for functionality, not code! The prevailing philosophy in regards to unit testing is writing your tests before your code. In practice, this happens a lot less than it should. Why should we write our unit tests first? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unit tests are for functionality, not code! - Dennis van der Stelt</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-479</link>
		<dc:creator>Unit tests are for functionality, not code! - Dennis van der Stelt</dc:creator>
		<pubDate>Fri, 13 Jun 2008 09:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-479</guid>
		<description>[...] comes from two weblogs that have some unit testing comments. Jason Young posted the sentence and he refers to Obishawn who also has something to say. Why I’m writing this [...]</description>
		<content:encoded><![CDATA[<p>[...] comes from two weblogs that have some unit testing comments. Jason Young posted the sentence and he refers to Obishawn who also has something to say. Why I’m writing this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html/comment-page-1#comment-478</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Thu, 12 Jun 2008 18:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ytechie.com/2008/06/unit-tests-are-for-functionality-not-code.html#comment-478</guid>
		<description>1. Write a test for the new functionality
2. Run all tests and make sure that the new one fails
(otherwise your test is pointless)
3. Write just enough code to pass the test
4. Run the tests again to see them pass
5. Repeat</description>
		<content:encoded><![CDATA[<p>1. Write a test for the new functionality<br />
2. Run all tests and make sure that the new one fails<br />
(otherwise your test is pointless)<br />
3. Write just enough code to pass the test<br />
4. Run the tests again to see them pass<br />
5. Repeat</p>
]]></content:encoded>
	</item>
</channel>
</rss>
