Created
June 18, 2014 08:35
-
-
Save isidore/7d6b7eedc5d23801d057 to your computer and use it in GitHub Desktop.
Scrubbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void TestInternationalization() | |
{ | |
AspApprovals.VerifyUrl("http://localhost:1359/OrderForm", ScrubAspViewstate); | |
} | |
public static string ScrubAspViewstate(string input) | |
{ | |
string AspViewState = "<input type=\"hidden\" name=\"__VIEWSTATE\".+/>"; | |
return Regex.Replace(input, AspViewState, "<!-- aspviewstate -->"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment