-Fixed using FloatParseHandling.Decimal with XmlNodeConverter

-Fixed using DateParseHandling.DateTimeOffset with XmlNodeConverter
This commit is contained in:
James Newton-King
2014-04-25 23:38:52 +12:00
parent 9133626388
commit 081daae006
4 changed files with 101 additions and 1 deletions
@@ -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()
{