Skip to content

Instantly share code, notes, and snippets.

@kianryan
Created May 14, 2012 18:38
Show Gist options
  • Select an option

  • Save kianryan/2695573 to your computer and use it in GitHub Desktop.

Select an option

Save kianryan/2695573 to your computer and use it in GitHub Desktop.
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