Пример #1
0
 public void TestEscapedString(string s)
 => Assert.AreEqual(new JValue(s).GetHashCode(), JsonEncoding.EnsureAscii(s).GetHashCode());
Пример #2
0
 public void TestEscapeString(string unescaped, string escaped)
 => AssertAreEqual(JsonEncoding.HexEscape(unescaped), JsonEncoding.HexEscape(escaped));