Пример #1
0
        private static void ParsesArray(string json, object[] expectedArray)
        {
            var actual = CombinedParser.Parse(json);

            Assert.IsType <object[]>(actual);

            var actualArray = (object[])actual;

            AssertArraysMatch(expectedArray, actualArray);
        }
Пример #2
0
        private static void ParsesObject(string json, IDictionary <string, object> expectedProps)
        {
            var actual = CombinedParser.Parse(json);

            Assert.IsType <ExpandoObject>(actual);

            var actualProps = (IDictionary <string, object>)actual;

            AssertDictionariesMatch(expectedProps, actualProps);
        }
Пример #3
0
        private static void Parses(string json, object expected)
        {
            var actual = CombinedParser.Parse(json);

            Assert.Equal(expected, actual);
        }