Exemple #1
0
 [Test] public void Test01()
 {
     NUnit.Assert.Catch <ArgumentNullException>(() => JsonPath.SplitPath2(null));
 }
Exemple #2
0
 [Test] public void Test11()
 {
     CollectionAssert.AreEqual(new [] { "1" }, JsonPath.SplitPath2("[1]"));
 }
Exemple #3
0
 [Test] public void Test09()
 {
     CollectionAssert.AreEqual(new [] { "a", "[1].b" }, JsonPath.SplitPath2("a[1].b"));
 }
Exemple #4
0
 [Test] public void Test08()
 {
     CollectionAssert.AreEqual(new [] { "a", "b[1]" }, JsonPath.SplitPath2("a.b[1]"));
 }
Exemple #5
0
 [Test] public void Test05()
 {
     CollectionAssert.AreEqual(new [] { "a", "1" }, JsonPath.SplitPath2("a.1"));
 }
Exemple #6
0
 [Test] public void Test02()
 {
     CollectionAssert.AreEqual(new [] { "" }, JsonPath.SplitPath2(""));
 }