<?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 “Where’s The Dollar?”</title>
	<atom:link href="http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/</link>
	<description>Thoughts while working and playing as a Software Developer</description>
	<lastBuildDate>Thu, 11 Apr 2013 16:53: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: Erik</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-63</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Wed, 06 May 2009 16:35:55 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-63</guid>
		<description>I think the point of the exercise was that you should always be careful when turning business requirements into code, no matter what method you use.</description>
		<content:encoded><![CDATA[<p>I think the point of the exercise was that you should always be careful when turning business requirements into code, no matter what method you use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-62</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Wed, 06 May 2009 15:49:16 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-62</guid>
		<description>@Matthew

You are correct, this is a poorly designed test, but note that it is tagged under &quot;For Fun&quot; ;)</description>
		<content:encoded><![CDATA[<p>@Matthew</p>
<p>You are correct, this is a poorly designed test, but note that it is tagged under &#8220;For Fun&#8221; ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-61</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Wed, 06 May 2009 15:36:51 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-61</guid>
		<description>The tests are also improper in their usage of certain numbers.  The tests are written to prove or disprove equality conditions among variable expressions... testing if they equal 30, or 29 or 105 is poor design, and encourages the practical inadequacies of the test.</description>
		<content:encoded><![CDATA[<p>The tests are also improper in their usage of certain numbers.  The tests are written to prove or disprove equality conditions among variable expressions&#8230; testing if they equal 30, or 29 or 105 is poor design, and encourages the practical inadequacies of the test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Missal</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-60</link>
		<dc:creator>Chris Missal</dc:creator>
		<pubDate>Wed, 06 May 2009 15:08:52 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-60</guid>
		<description>@David

You&#039;re correct in the flaw in the riddle. It is asking you to add money spent with money earned. Like saying that if I gave you $1 and you earned $1 from it, we have $2. Which is just bad logic.

@Joshka

You&#039;re also correct that the test is incorrect; the test falls under the same mistakes that the riddle enforces, the credit/debit actions cannot be added together like they are. The Front desk should start at $0 if the guys start at $10. This requires a rework of the tested logic, thus causing the test to fail.</description>
		<content:encoded><![CDATA[<p>@David</p>
<p>You&#8217;re correct in the flaw in the riddle. It is asking you to add money spent with money earned. Like saying that if I gave you $1 and you earned $1 from it, we have $2. Which is just bad logic.</p>
<p>@Joshka</p>
<p>You&#8217;re also correct that the test is incorrect; the test falls under the same mistakes that the riddle enforces, the credit/debit actions cannot be added together like they are. The Front desk should start at $0 if the guys start at $10. This requires a rework of the tested logic, thus causing the test to fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshka</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-59</link>
		<dc:creator>Joshka</dc:creator>
		<pubDate>Wed, 06 May 2009 14:50:06 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-59</guid>
		<description>The last line should read:
Assert.That(GuyOne + GuyTwo + GuyThree - BellBoy, Is.EqualTo(FrontDesk));

The code is flawed in that GuyOne,Two,Three represent credits but bellboy and frontdesk represent debits (or the vice versa, I forget which).
Either way, your intransient condition is that no money is created in the system, i.e. bell + guys + frontdesk = 30</description>
		<content:encoded><![CDATA[<p>The last line should read:<br />
Assert.That(GuyOne + GuyTwo + GuyThree &#8211; BellBoy, Is.EqualTo(FrontDesk));</p>
<p>The code is flawed in that GuyOne,Two,Three represent credits but bellboy and frontdesk represent debits (or the vice versa, I forget which).<br />
Either way, your intransient condition is that no money is created in the system, i.e. bell + guys + frontdesk = 30</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Morton</title>
		<link>http://lostechies.com/chrismissal/2009/05/06/unit-testing-where-s-the-dollar/#comment-58</link>
		<dc:creator>David Morton</dc:creator>
		<pubDate>Wed, 06 May 2009 14:44:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chrismissal/archive/2009/05/06/unit-testing-where-s-the-dollar.aspx#comment-58</guid>
		<description>It&#039;s in the riddle.  

The men paid 27 dollars total, 25 of which went to the hotel, and 2 of which went to the bellboy.  The error is in adding the amount of money the men spent to the amount of money the bellhop _received_.  The amount of money received should be subtracted from the amount of money spent, and the values are equal. </description>
		<content:encoded><![CDATA[<p>It&#8217;s in the riddle.  </p>
<p>The men paid 27 dollars total, 25 of which went to the hotel, and 2 of which went to the bellboy.  The error is in adding the amount of money the men spent to the amount of money the bellhop _received_.  The amount of money received should be subtracted from the amount of money spent, and the values are equal. </p>
]]></content:encoded>
	</item>
</channel>
</rss>
