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