Example #1
0
        public void EvaluateConstructorOutOfBoundsIndxerWithError()
        {
            JConstructor c = new JConstructor("Blah");

            ExceptionAssert.Throws <JsonException>(
                @"Index 1 outside the bounds of JConstructor.",
                () => { c.SelectToken("[1]", true); });
        }
Example #2
0
        public void EvaluateConstructorOutOfBoundsIndxer()
        {
            JConstructor c = new JConstructor("Blah");

            Assert.IsNull(c.SelectToken("[1]"));
        }
Example #3
0
        public void EvaluateIndexerOnConstructorWithError()
        {
            JConstructor c = new JConstructor("Blah");

            c.SelectToken("[1]", true);
        }
Example #4
0
        public void EvaluateConstructorOutOfBoundsIndxerWithError()
        {
            JConstructor c = new JConstructor("Blah");

            c.SelectToken("[1]", true);
        }