Exemple #1
0
        public void DefaultJsonOptions()
        {
            var testObject = new SimpleTestObject
            {
                Id   = 0,
                Name = "Test",
            };

            CompareJson(testObject, JsonHelpers.Default, new Newtonsoft.Json.JsonSerializerSettings());
        }
Exemple #2
0
        public void IndentedJsonOptions()
        {
            var testObject = new SimpleTestObject
            {
                Id   = 10,
                Name = "Test Name"
            };

            CompareJson(testObject, JsonHelpers.Indented, new Newtonsoft.Json.JsonSerializerSettings
            {
                Formatting = Newtonsoft.Json.Formatting.Indented,
            });
        }