public void ConvertEscapeSequencesDoesNotEscapeUnicodeSequences() { // Act string value = HtmlObjectPrinter.ConvertEscapseSequences("\u1023\x2045"); // Assert Assert.Equal("\u1023\x2045", value); }
public void ConvertEscapeSequencesPrintsStringEscapeSequencesAsLiterals() { // Act string value = HtmlObjectPrinter.ConvertEscapseSequences("\\\'\"\0\a\b\f\n\r\t\v"); // Assert Assert.Equal("\\\\'\\\"\\0\\a\\b\\f\\n\\r\\t\\v", value); }