CSharpFeeds - All your C# feeds in one place.

Sponsors

Sunday, October 07, 2007

VS REGEX: Commenting Generated Assert Instructions

by Paulo Morgado via Paulo Morgado : C# on 10/7/2007 10:56:00 PM

Visual Studio's Unit Test generator generates a call to Assert.Inconclusive but, usually generates a call to another method of the Assert class. I find that very annoying because, some times, this makes the test fail instead of being reported as inconclusive.

To comment out these extra calls to Assert methods, the following regular expression can be used:

Find what:
{:b*}{Assert\.~(Inconclusive).*\n:b*Assert\.Inconclusive}
Replace with:
\1//\2

Check out the complete list.

email it!bookmark it!digg it!

Original Post: VS REGEX: Commenting Generated Assert Instructions

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us