-Fixed using FloatParseHandling.Decimal with XmlNodeConverter
-Fixed using DateParseHandling.DateTimeOffset with XmlNodeConverter
This commit is contained in:
@@ -50,6 +50,17 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
|
||||
[TestFixture]
|
||||
public class JPathExecuteTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void EvaluatePropertyWithRequired()
|
||||
{
|
||||
string json = "{\"bookId\":\"1000\"}";
|
||||
JObject o = JObject.Parse(json);
|
||||
|
||||
string bookId = (string)o.SelectToken("bookId", true);
|
||||
|
||||
Assert.AreEqual("1000", bookId);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EvaluateEmptyPropertyIndexer()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user