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