-Added missing casts to JToken
-Upgraded to Immutable Collections RC -Tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user