Пример #1
0
        public void TestObjectParse(string name, ApiObject expected)
        {
            // Arrange
            var json = expected.ToJson();

            // Act
            this.Output.WriteLine(json);
            var actual = JsonObject.Parse <Object>(json);

            // Assert
            ApiObjectAssert.Equal(expected, (JToken)actual);
        }
Пример #2
0
        public void TestObjectToJson(string name, ApiObject expected)
        {
            // Arrange

            // Act
            var actual = expected.ToJson();

            this.Output.WriteLine(actual);

            // Assert
            ApiObjectAssert.Equal(expected, actual);
        }