-Tests
This commit is contained in:
@@ -256,11 +256,11 @@ namespace Newtonsoft.Json.Tests.Linq
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(NETSTANDARD1_0 || PORTABLE)
|
#if !(PORTABLE) || NETSTANDARD1_3
|
||||||
[Test]
|
[Test]
|
||||||
public void JValueIConvertable()
|
public void JValueIConvertable()
|
||||||
{
|
{
|
||||||
Assert.IsInstanceOf(typeof(IConvertible), new JValue(0));
|
Assert.IsTrue(new JValue(0) is IConvertible);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -503,7 +503,7 @@ namespace Newtonsoft.Json.Tests.Linq
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(PORTABLE)
|
#if !(PORTABLE) || NETSTANDARD1_3
|
||||||
[Test]
|
[Test]
|
||||||
public void ConvertsToBoolean()
|
public void ConvertsToBoolean()
|
||||||
{
|
{
|
||||||
@@ -744,8 +744,6 @@ namespace Newtonsoft.Json.Tests.Linq
|
|||||||
new JValue(new Uri("http://james.newtonking.com/install?v=7.0.1"))
|
new JValue(new Uri("http://james.newtonking.com/install?v=7.0.1"))
|
||||||
);
|
);
|
||||||
|
|
||||||
Console.WriteLine(a.ToString());
|
|
||||||
|
|
||||||
StringAssert.AreEqual(@"[
|
StringAssert.AreEqual(@"[
|
||||||
""http://james.newtonking.com"",
|
""http://james.newtonking.com"",
|
||||||
""http://james.newtonking.com/install?v=7.0.1""
|
""http://james.newtonking.com/install?v=7.0.1""
|
||||||
|
|||||||
Reference in New Issue
Block a user