-Fixed test error when tests run in UTC timezone
-Fixed globalization warnings -Fixed SelectToken skipping last property name if it is a single character
This commit is contained in:
@@ -243,6 +243,15 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
Assert.AreEqual(3, (int)t);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EvaluateLastSingleCharacterProperty()
|
||||
{
|
||||
JObject o2 = JObject.Parse("{'People':[{'N':'Jeff'}]}");
|
||||
string a2 = (string)o2.SelectToken("People[0].N");
|
||||
|
||||
Assert.AreEqual("Jeff", a2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Example()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user