<?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: Say the right thing &#8211; don&#039;t just do the right thing.</title>
	<atom:link href="http://sarahtaraporewalla.com/testing/say-the-right-thing-dont-just-do-the-right-thing/feed/" rel="self" type="application/rss+xml" />
	<link>http://sarahtaraporewalla.com/testing/say-the-right-thing-dont-just-do-the-right-thing/</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 04:31:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Joe</title>
		<link>http://sarahtaraporewalla.com/testing/say-the-right-thing-dont-just-do-the-right-thing/#comment-17</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 18 May 2010 17:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://sarahtarap.wordpress.com/2008/09/07/say-the-right-thing-dont-just-do-the-right-thing/#comment-17</guid>
		<description>&gt; *Even with Intelli-J or Resharper,
&gt; there is work involved to understand
&gt; these values

Doh! Speaking of Resharper, some marketing guy from M$ called me a few days ago and asked how I liked Visual Studio 2008. I told him that it the stock/ out-of-the-box refactorings in VS suck and that they should either include Resharper functionality in VS (for free) or they should copy Eclipse&#039;s refactorings. OMG, VS 2008 doesn&#039;t even let you refactor the basics like method return types and parameter names.</description>
		<content:encoded><![CDATA[<p>&gt; *Even with Intelli-J or Resharper,<br />
&gt; there is work involved to understand<br />
&gt; these values</p>
<p>Doh! Speaking of Resharper, some marketing guy from M$ called me a few days ago and asked how I liked Visual Studio 2008. I told him that it the stock/ out-of-the-box refactorings in VS suck and that they should either include Resharper functionality in VS (for free) or they should copy Eclipse&#8217;s refactorings. OMG, VS 2008 doesn&#8217;t even let you refactor the basics like method return types and parameter names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://sarahtaraporewalla.com/testing/say-the-right-thing-dont-just-do-the-right-thing/#comment-16</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 18 May 2010 17:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://sarahtarap.wordpress.com/2008/09/07/say-the-right-thing-dont-just-do-the-right-thing/#comment-16</guid>
		<description>Sorry, I didn&#039;t realize you had a new blog. I&#039;m reposting my comment from blogger:

I&#039;m totally with you on this one, Sarah. I usually practice Test First Development. I like to go one step further and give the parameters a name, to further clarify my intentions. For example:

public void SuccessulUpdateOfCarDeatilsShouldReturnSuccessResponse()
{
CarController controller = new CarController();

int dummyCarId = 42;
string carRegistration = &quot;car registration&quot;;
string colour = &quot;colour&quot;;
string engineIdentificationNumber = &quot;engineIdentificationNumber&quot;;

controller.UpdateCarDetails(dummyCarId, carRegistration, colour, engineIdentificationNumber);

Assert.AreEqual(HttpStatusCode.OK, controller.Response);
}

Giving the parameters a name is especially beneficial when the method under test has many overloads. Note that I also changed the expected value 200 to HttpStatusCode.OK.

Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t realize you had a new blog. I&#8217;m reposting my comment from blogger:</p>
<p>I&#8217;m totally with you on this one, Sarah. I usually practice Test First Development. I like to go one step further and give the parameters a name, to further clarify my intentions. For example:</p>
<p>public void SuccessulUpdateOfCarDeatilsShouldReturnSuccessResponse()<br />
{<br />
CarController controller = new CarController();</p>
<p>int dummyCarId = 42;<br />
string carRegistration = &#8220;car registration&#8221;;<br />
string colour = &#8220;colour&#8221;;<br />
string engineIdentificationNumber = &#8220;engineIdentificationNumber&#8221;;</p>
<p>controller.UpdateCarDetails(dummyCarId, carRegistration, colour, engineIdentificationNumber);</p>
<p>Assert.AreEqual(HttpStatusCode.OK, controller.Response);<br />
}</p>
<p>Giving the parameters a name is especially beneficial when the method under test has many overloads. Note that I also changed the expected value 200 to HttpStatusCode.OK.</p>
<p>Keep up the good work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
