public void AJson_TextIndexer_TestNext_Quote() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(65, text.Next('\"', 0)); Assert.AreEqual(70, text.Next('\"', 66)); }
public void AJson_TextIndexer_TestNext_Invalid() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(-1, text.Next('x', 0)); Assert.AreEqual(-1, text.Next('{', 5001)); }
public void AJson_TextIndexer_TestNext_Colon() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(33, text.Next(':', 0)); Assert.AreEqual(49, text.Next(':', 34)); }
public void AJson_TextIndexer_TestNext_SquareCloseBracket() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(24, text.Next(']', 0)); Assert.AreEqual(60, text.Next(']', 25)); Assert.AreEqual(-1, text.Next(']', 61)); }
public void AJson_TextIndexer_TestNext_SquareOpenBracket() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(11, text.Next('[', 0)); Assert.AreEqual(35, text.Next('[', 12)); Assert.AreEqual(-1, text.Next('[', 36)); }
public void AJson_TextIndexer_TestNext_CloseCurly() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(58, text.Next('}', 0)); Assert.AreEqual(62, text.Next('}', 59)); Assert.AreEqual(72, text.Next('}', 63)); Assert.AreEqual(-1, text.Next('}', 73)); }
public void AJson_TextIndexer_TestNext_OpenCurly() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(5, text.Next('{', 0)); Assert.AreEqual(27, text.Next('{', 6)); Assert.AreEqual(43, text.Next('{', 28)); Assert.AreEqual(-1, text.Next('{', 44)); }
public void AJson_TextIndexer_TestNext_Comma() { JsonTextIndexer text = new JsonTextIndexer(kTestText); Assert.AreEqual(17, text.Next(',', 0)); Assert.AreEqual(25, text.Next(',', 18)); Assert.AreEqual(41, text.Next(',', 26)); Assert.AreEqual(63, text.Next(',', 42)); Assert.AreEqual(-1, text.Next(',', 64)); }