-Added missing casts to JToken

-Upgraded to Immutable Collections RC
-Tests
This commit is contained in:
James Newton-King
2013-09-13 20:15:30 +12:00
parent 4922c4eedc
commit 5512e2623c
27 changed files with 4688 additions and 12022 deletions
@@ -24,6 +24,7 @@
#endregion
#if !NETFX_CORE
using System;
using NUnit.Framework;
#else
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
@@ -56,5 +57,14 @@ namespace Newtonsoft.Json.Tests.Linq
CustomAssert.IsInstanceOfType(typeof(JRaw), r2);
}
[Test]
public void RawToObject()
{
JRaw r1 = new JRaw("1");
int i = r1.ToObject<int>();
Assert.AreEqual(1, i);
}
}
}