-Fixed bug when converting certain XML with namespaces
-Add support for serializing F# lists, sets and maps
This commit is contained in:
@@ -50,6 +50,16 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
|
||||
[TestFixture]
|
||||
public class JPathExecuteTests : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void EvaluateEmptyPropertyIndexer()
|
||||
{
|
||||
JObject o = new JObject(
|
||||
new JProperty("", 1));
|
||||
|
||||
JToken t = o.SelectToken("['']");
|
||||
Assert.AreEqual(1, (int)t);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EvaluateEmptyString()
|
||||
{
|
||||
@@ -58,6 +68,19 @@ namespace Newtonsoft.Json.Tests.Linq.JsonPath
|
||||
|
||||
JToken t = o.SelectToken("");
|
||||
Assert.AreEqual(o, t);
|
||||
|
||||
t = o.SelectToken("['']");
|
||||
Assert.AreEqual(null, t);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EvaluateEmptyStringWithMatchingEmptyProperty()
|
||||
{
|
||||
JObject o = new JObject(
|
||||
new JProperty(" ", 1));
|
||||
|
||||
JToken t = o.SelectToken("[' ']");
|
||||
Assert.AreEqual(1, (int)t);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user