Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Replacing MBUnit tests with XUnit tests - some regexs.
Assert.Equal\({.+}, {.+}, .+\);
Assert.Equal(\1, \2);
Assert.NotNull\({.+}, .+\);
Assert.NotNull(\1);
Assert.GreaterThan\({.+}, {.+}\);
Assert.True(\1 > \2);
--
/using \(.+\);\n\n
:s /using \(.*\);\n\n/using \1;\nusing BrandingScience.API.DAL.Models;\r\r/
/public class \(.*\) : EfRepository\<.*\>, I.*Repository\s*{/\0 { boobies }/
s/,\n*\s*BrandingScienceDataContext\n*\s*>/>/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment