<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Daniel Wertheim</title>
	<atom:link href="http://daniel.wertheim.se/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://daniel.wertheim.se</link>
	<description>Love what you do - Continue to do it - Be eager to learn more about it.</description>
	<lastBuildDate>Tue, 24 Jan 2012 07:50:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on C#, Generic factory with support for private constructors by Real Exams</title>
		<link>http://daniel.wertheim.se/2011/12/29/c-generic-factory-with-support-for-private-constructors/#comment-1049</link>
		<dc:creator><![CDATA[Real Exams]]></dc:creator>
		<pubDate>Tue, 24 Jan 2012 07:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1292#comment-1049</guid>
		<description><![CDATA[There are certainly new points to learn. thanks a lot.]]></description>
		<content:encoded><![CDATA[<p>There are certainly new points to learn. thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PineCone project by Elegant Code &#187; NuGet Project Uncovered: PineCone</title>
		<link>http://daniel.wertheim.se/2011/05/18/pinecone-project/#comment-1048</link>
		<dc:creator><![CDATA[Elegant Code &#187; NuGet Project Uncovered: PineCone]]></dc:creator>
		<pubDate>Tue, 24 Jan 2012 00:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=900#comment-1048</guid>
		<description><![CDATA[[...] found a description from a blog post for this project: PineCone lets you take a C# class and then builds a schema for this class. This [...]]]></description>
		<content:encoded><![CDATA[<p>[...] found a description from a blog post for this project: PineCone lets you take a C# class and then builds a schema for this class. This [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why the ExpectedExceptionAttribute sucks! by Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2011/07/20/why-the-expectedexceptionattribute-sucks/#comment-1041</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 09:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1174#comment-1041</guid>
		<description><![CDATA[Hi Joey,
Hope I can clarify.

PlaceBid_WhenNoBidsExists_BidIsAdded
Nothing to comment

PlaceBid_WhenHigherBidExists_ThrowsInvalidOperationException
Bid 1: 10
Bid 2: 5 --&gt; InvalidOperationException

PlaceBid_WhenBidIsLowerThan5_ThrowsInvalidOperationException
Bid 1: 4 --&gt; InvalidOperationException

Update
PlaceBid_WhenBidIsLowerThan5_ThrowsInvalidOperationException

to

PlaceBid_WhenBidIsLowerThan10_ThrowsInvalidOperationException
Bid 1: 9 --&gt; InvalidOperationException

All tests passes at this point while test: &quot;PlaceBid_WhenHigherBidExists_ThrowsInvalidOperationException&quot; should fail. Why? Since it should test InvalidOperationException caused by higher bid exists not InvalidOperationException caused by to low bid. Hence this test should be updated to, lets say: Bid 1 &quot;15&quot; and Bid 2 &quot;10&quot;. It will still pass, but this time since 10 is lower than 15. That&#039;s the point. ExpectedException can not isolate a single line.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>Hi Joey,<br />
Hope I can clarify.</p>
<p>PlaceBid_WhenNoBidsExists_BidIsAdded<br />
Nothing to comment</p>
<p>PlaceBid_WhenHigherBidExists_ThrowsInvalidOperationException<br />
Bid 1: 10<br />
Bid 2: 5 &#8211;&gt; InvalidOperationException</p>
<p>PlaceBid_WhenBidIsLowerThan5_ThrowsInvalidOperationException<br />
Bid 1: 4 &#8211;&gt; InvalidOperationException</p>
<p>Update<br />
PlaceBid_WhenBidIsLowerThan5_ThrowsInvalidOperationException</p>
<p>to</p>
<p>PlaceBid_WhenBidIsLowerThan10_ThrowsInvalidOperationException<br />
Bid 1: 9 &#8211;&gt; InvalidOperationException</p>
<p>All tests passes at this point while test: &#8220;PlaceBid_WhenHigherBidExists_ThrowsInvalidOperationException&#8221; should fail. Why? Since it should test InvalidOperationException caused by higher bid exists not InvalidOperationException caused by to low bid. Hence this test should be updated to, lets say: Bid 1 &#8220;15&#8243; and Bid 2 &#8220;10&#8243;. It will still pass, but this time since 10 is lower than 15. That&#8217;s the point. ExpectedException can not isolate a single line.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#, Why params object[] should be forbidden! (v2) by Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2012/01/18/c-why-params-object-should-be-forbidden/#comment-1040</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 09:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1370#comment-1040</guid>
		<description><![CDATA[The difference lied in &lt;code&gt;params int[]&lt;/code&gt; vs &lt;code&gt;params object[]&lt;/code&gt;, but I&#039;ve rewritten the post since I first wrote it in anger/frustration. I hope it is more clear now.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>The difference lied in <code>params int[]</code> vs <code>params object[]</code>, but I&#8217;ve rewritten the post since I first wrote it in anger/frustration. I hope it is more clear now.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#, Why params object[] should be forbidden! (v2) by Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2012/01/18/c-why-params-object-should-be-forbidden/#comment-1039</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 09:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1370#comment-1039</guid>
		<description><![CDATA[I&#039;ve rewritten the post since I first wrote it in anger/frustration. I hope it is more clear now.

//Daniel]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve rewritten the post since I first wrote it in anger/frustration. I hope it is more clear now.</p>
<p>//Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#, Why params object[] should be forbidden! (v2) by Arthur</title>
		<link>http://daniel.wertheim.se/2012/01/18/c-why-params-object-should-be-forbidden/#comment-1038</link>
		<dc:creator><![CDATA[Arthur]]></dc:creator>
		<pubDate>Thu, 19 Jan 2012 21:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1370#comment-1038</guid>
		<description><![CDATA[Unless I need new glasses I do not see any difference in code Daniel]]></description>
		<content:encoded><![CDATA[<p>Unless I need new glasses I do not see any difference in code Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why the ExpectedExceptionAttribute sucks! by Joey</title>
		<link>http://daniel.wertheim.se/2011/07/20/why-the-expectedexceptionattribute-sucks/#comment-1036</link>
		<dc:creator><![CDATA[Joey]]></dc:creator>
		<pubDate>Thu, 19 Jan 2012 13:31:39 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1174#comment-1036</guid>
		<description><![CDATA[I don´t agree with the conclusion you´re drawing from the final example.
You tell the code to check if the value you try to enter, is &lt; 10. If that&#039;s the case, you throw the exception.
After that happens, you check if the bid is lower than what has already been bid.

In my eyes, the code shouldn&#039;t give the &#039;bid is lower than other bid&#039; at all, because the value you&#039;re trying to bid is invalid in the first place.

So the reason the test fails, is because you expect an Exception to be thrown, that shouldn&#039;t be thrown in this particular case.

tl;dr:
The code in your example should correctly throw the &#039;bid &lt; 10&#039; Exception. It does this, but you expect another exception.

p.s. Don&#039;t get me wrong, MSTest has it&#039;s shortcomings, it&#039;s not perfect at all. But I just couldn&#039;t agree with this particular example. :-)

//J]]></description>
		<content:encoded><![CDATA[<p>I don´t agree with the conclusion you´re drawing from the final example.<br />
You tell the code to check if the value you try to enter, is &lt; 10. If that&#039;s the case, you throw the exception.<br />
After that happens, you check if the bid is lower than what has already been bid.</p>
<p>In my eyes, the code shouldn&#039;t give the &#039;bid is lower than other bid&#039; at all, because the value you&#039;re trying to bid is invalid in the first place.</p>
<p>So the reason the test fails, is because you expect an Exception to be thrown, that shouldn&#039;t be thrown in this particular case.</p>
<p>tl;dr:<br />
The code in your example should correctly throw the &#039;bid &lt; 10&#039; Exception. It does this, but you expect another exception.</p>
<p>p.s. Don&#039;t get me wrong, MSTest has it&#039;s shortcomings, it&#039;s not perfect at all. But I just couldn&#039;t agree with this particular example. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>//J</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#, Why params object[] should be forbidden! (v2) by Kim Tranjan</title>
		<link>http://daniel.wertheim.se/2012/01/18/c-why-params-object-should-be-forbidden/#comment-1033</link>
		<dc:creator><![CDATA[Kim Tranjan]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 23:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1370#comment-1033</guid>
		<description><![CDATA[Do you mean &quot;Change: params object[] to object&quot;?]]></description>
		<content:encoded><![CDATA[<p>Do you mean &#8220;Change: params object[] to object&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C#, Why params object[] should be forbidden! (v2) by Kim Tranjan</title>
		<link>http://daniel.wertheim.se/2012/01/18/c-why-params-object-should-be-forbidden/#comment-1032</link>
		<dc:creator><![CDATA[Kim Tranjan]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 23:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1370#comment-1032</guid>
		<description><![CDATA[Sorry, I don&#039;t get it...]]></description>
		<content:encoded><![CDATA[<p>Sorry, I don&#8217;t get it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SisoDb v9.0 Released. by Daniel Wertheim</title>
		<link>http://daniel.wertheim.se/2012/01/17/sisodb-v9-0-released/#comment-1031</link>
		<dc:creator><![CDATA[Daniel Wertheim]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 20:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://daniel.wertheim.se/?p=1329#comment-1031</guid>
		<description><![CDATA[That&#039;s a great suggestion.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a great suggestion.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

