-Added additional unicode encoding test

This commit is contained in:
JamesNK
2008-11-23 05:11:59 +00:00
parent 5b58fb32de
commit fc6ffd0549
@@ -332,7 +332,7 @@ namespace Newtonsoft.Json.Tests
[Test]
public void EscapedUnicodeText()
{
string json = @"[""\u003c""]";
string json = @"[""\u003c"",""\u5f20""]";
JsonTextReader reader = new JsonTextReader(new StringReader(json));
@@ -342,6 +342,9 @@ namespace Newtonsoft.Json.Tests
reader.Read();
Assert.AreEqual("<", reader.Value);
reader.Read();
Assert.AreEqual(24352, Convert.ToInt32(Convert.ToChar((string)reader.Value)));
reader.Read();
Assert.AreEqual(JsonToken.EndArray, reader.TokenType);
}