示例#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"));
 }