[Mono-dev] nunit test upgrading task force

Robert Jordan robertj at gmx.net
Tue Jun 23 06:56:28 EDT 2009


Stifu wrote:
> We could automate the change using a regexp and do a massive replace, no?
> Using Notepad++ (http://notepad-plus.sourceforge.net/uk/regExpList.php),
> this seems to work fine:
> 
> Find:
> AssertEquals \((.+[^,]),(.+[^,]), (.+[^,])\);
> 
> Replace with:
> Assert.AreEqual (\2, \3, \1);
> 
> Needs a bit more work to remove the " : Assertion" part, but that's the
> idea.
> What do you think?

I believe Atsushi does not care how this conversion is performed
as long as he doesn't have to do on his own. You may use a regexp
or a farm of typing monkeys as long you "just do it" (TM) :)

Robert



More information about the Mono-devel-list mailing list