<?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: Visual Studio/Resharper: Changing the order of arguments</title>
	<atom:link href="http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: DCam</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19254</link>
		<dc:creator>DCam</dc:creator>
		<pubDate>Fri, 26 Jun 2009 08:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19254</guid>
		<description>That last bit from Josh looks a bit HamBreadish?</description>
		<content:encoded><![CDATA[<p>That last bit from Josh looks a bit HamBreadish?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19102</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 24 Jun 2009 00:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19102</guid>
		<description>What I tend to do these days is use the  NUnit.Framework.SyntaxHelpers to make the asserts easier to read and to avoid the issue you refer too.

Assert.AreEqual(theActualValue, &quot;the expectation&quot;);

Becomes:

Assert.That(theActualValue, Is.EqualTo(&quot;the expectation&quot;));</description>
		<content:encoded><![CDATA[<p>What I tend to do these days is use the  NUnit.Framework.SyntaxHelpers to make the asserts easier to read and to avoid the issue you refer too.</p>
<p>Assert.AreEqual(theActualValue, &#8220;the expectation&#8221;);</p>
<p>Becomes:</p>
<p>Assert.That(theActualValue, Is.EqualTo(&#8220;the expectation&#8221;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Robinson</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19099</link>
		<dc:creator>Tim Robinson</dc:creator>
		<pubDate>Tue, 23 Jun 2009 22:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19099</guid>
		<description>Nice, didn&#039;t know about &#039;Ctrl-Alt-Shift-ArrowKey.

How about:
1. Write method TempAssert(actual, expected)
2. Replace all Assert.AreEqual with TempAssert
3. Swap TempAssert&#039;s parameters
4. Replace all TempAssert with Assert.AreEqual (or use my new friend, Inline Method)</description>
		<content:encoded><![CDATA[<p>Nice, didn&#8217;t know about &#8216;Ctrl-Alt-Shift-ArrowKey.</p>
<p>How about:<br />
1. Write method TempAssert(actual, expected)<br />
2. Replace all Assert.AreEqual with TempAssert<br />
3. Swap TempAssert&#8217;s parameters<br />
4. Replace all TempAssert with Assert.AreEqual (or use my new friend, Inline Method)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Palmer</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19070</link>
		<dc:creator>Andy Palmer</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19070</guid>
		<description>Oh, and it would also change this:
DoSomething(param1, param2, &quot;Do something&quot;) to
DoSomething(&quot;Do something&quot;, param1, param2)

Does:
\({:a+}, {:q}
do what you need?</description>
		<content:encoded><![CDATA[<p>Oh, and it would also change this:<br />
DoSomething(param1, param2, &#8220;Do something&#8221;) to<br />
DoSomething(&#8220;Do something&#8221;, param1, param2)</p>
<p>Does:<br />
\({:a+}, {:q}<br />
do what you need?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19069</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19069</guid>
		<description>Yeh good point! 

I was only applying it to places which had 2 arguments and in all the cases the second argument was a string so for that case it worked out ok. 

I&#039;m sure it could be tightened up to make sure it doesn&#039;t change stuff it&#039;s not meant to - I&#039;m never sure with regular expressions how much time should be spent making it deal with unusual cases as compared to just ensuring you only use it on strings which you know are of a certain format/style.</description>
		<content:encoded><![CDATA[<p>Yeh good point! </p>
<p>I was only applying it to places which had 2 arguments and in all the cases the second argument was a string so for that case it worked out ok. </p>
<p>I&#8217;m sure it could be tightened up to make sure it doesn&#8217;t change stuff it&#8217;s not meant to &#8211; I&#8217;m never sure with regular expressions how much time should be spent making it deal with unusual cases as compared to just ensuring you only use it on strings which you know are of a certain format/style.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Palmer</title>
		<link>http://www.markhneedham.com/blog/2009/06/23/visual-studioresharper-changing-the-order-of-arguments/comment-page-1/#comment-19068</link>
		<dc:creator>Andy Palmer</dc:creator>
		<pubDate>Tue, 23 Jun 2009 10:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=1369#comment-19068</guid>
		<description>This will change the order of all parameters where the second one is a quoted string. Be careful when using replace all.

For example, it will also change the order of:
DoSomething(&quot;parameter 1&quot;, &quot;parameter 2&quot;, &quot;parameter 3&quot;);</description>
		<content:encoded><![CDATA[<p>This will change the order of all parameters where the second one is a quoted string. Be careful when using replace all.</p>
<p>For example, it will also change the order of:<br />
DoSomething(&#8220;parameter 1&#8243;, &#8220;parameter 2&#8243;, &#8220;parameter 3&#8243;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

