From e2dc61b8f348031d588654b74fb5adbe2ba82ef3 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sat, 5 Nov 2016 23:42:40 +1300 Subject: [PATCH] -Test --- Src/Newtonsoft.Json.Tests/Linq/JTokenTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Newtonsoft.Json.Tests/Linq/JTokenTests.cs b/Src/Newtonsoft.Json.Tests/Linq/JTokenTests.cs index a2418fa7..57e4337a 100644 --- a/Src/Newtonsoft.Json.Tests/Linq/JTokenTests.cs +++ b/Src/Newtonsoft.Json.Tests/Linq/JTokenTests.cs @@ -478,6 +478,7 @@ namespace Newtonsoft.Json.Tests.Linq Assert.AreEqual((ulong)1L, (new JValue(1).ToObject(typeof(ulong?)))); Assert.AreEqual((sbyte)1L, (new JValue(1).ToObject(typeof(sbyte)))); Assert.AreEqual((sbyte)1L, (new JValue(1).ToObject(typeof(sbyte?)))); + Assert.AreEqual(null, (JValue.CreateNull().ToObject(typeof(sbyte?)))); Assert.AreEqual((byte)1L, (new JValue(1).ToObject(typeof(byte)))); Assert.AreEqual((byte)1L, (new JValue(1).ToObject(typeof(byte?)))); Assert.AreEqual((short)1L, (new JValue(1).ToObject(typeof(short))));