updating unit tests.

This commit is contained in:
Claus
2019-01-04 09:40:55 +01:00
parent 7ead62730b
commit 71f2b7ee06

View File

@@ -61,10 +61,10 @@ namespace Umbraco.Tests.Strings
Assert.AreEqual(stripped, result);
}
[TestCase("'+alert(1234)+'", "alert1234")]
[TestCase("'+alert(56+78)+'", "alert5678")]
[TestCase("'+alert(1234)+'", "+alert1234+")]
[TestCase("'+alert(56+78)+'", "+alert56+78+")]
[TestCase("{{file}}", "file")]
[TestCase("'+alert('hello')+'", "alerthello")]
[TestCase("'+alert('hello')+'", "+alerthello+")]
[TestCase("Test", "Test")]
public void Clean_From_XSS(string input, string result)
{