Example #1
0
        public void GivenArray_GetProperty_MustGotArray()
        {
            var obj     = new[] { 1, 2, 3, 4, 5, 6 };
            var visitor = new JsonVisitor(obj);
            var arr     = visitor.ToArray();
            var count   = arr.Count();

            Assert.AreEqual(obj.Length, count);
            Assert.AreEqual("1", arr.First().Value.ToString());
        }