-Lots and lots of JSON Schema work
-JSON Schema spec tests added -Added Path to JToken -Fixed JTokenWriter returning null reference -Build script logging -Documentation -Updated to NUnit 2.6
This commit is contained in:
@@ -75,6 +75,23 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
Assert.IsTrue(ReferenceEquals(newValue1, newValue2));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void JObjectCount()
|
||||
{
|
||||
JObject o = new JObject();
|
||||
|
||||
dynamic d = o;
|
||||
|
||||
long? c1 = d.Count;
|
||||
|
||||
o["Count"] = 99;
|
||||
|
||||
long? c2 = d.Count;
|
||||
|
||||
Assert.AreEqual(null, c1);
|
||||
Assert.AreEqual(99, c2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void JObjectEnumerator()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user