Esempio n. 1
0
        public void StepOutOfArrayFromStart()
        {
            MockedJsonReader reader = new MockedJsonReader();

            reader.Begin().Array().String("one").String("two").String("three").EndArray().End();

            reader.MoveToContent();
            reader.StepOut();
            Assert.IsTrue(reader.EOF);
        }
Esempio n. 2
0
        public void StepOutThroughNestedArray()
        {
            MockedJsonReader reader = new MockedJsonReader();

            reader.Begin().Array()
            .String("one")
            .String("two").Array()
            .String("three")
            .String("four")
            .EndArray()
            .String("five")
            .EndArray()
            .End();

            reader.MoveToContent();
            reader.StepOut();
            Assert.IsTrue(reader.EOF);
        }
 public void SkipThroughNestedArrays()
 {
     MockedJsonReader reader = new MockedJsonReader();
     reader.Begin().Array()
         .String("one")
         .String("two").Array()
             .String("three")
             .String("four")
             .EndArray()
         .String("five")
         .EndArray()
     .End();
     
     reader.MoveToContent();
     reader.StepOut();
     Assert.IsTrue(reader.EOF);
 }
 public void SkipArrayFromStart()
 {
     MockedJsonReader reader = new MockedJsonReader();
     reader.Begin().Array().String("one").String("two").String("three").EndArray().End();
     
     reader.MoveToContent();
     reader.StepOut();
     Assert.IsTrue(reader.EOF);
 }