Skip to content

Instantly share code, notes, and snippets.

@isidore
Created June 18, 2014 08:35
Show Gist options
  • Save isidore/7d6b7eedc5d23801d057 to your computer and use it in GitHub Desktop.
Save isidore/7d6b7eedc5d23801d057 to your computer and use it in GitHub Desktop.
Scrubbers
[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