diff --git a/JsonGeneratorTests/Intented_Object_Tests.cpp b/JsonGeneratorTests/Intented_Object_Tests.cpp index 7dc42257..a4c458ef 100644 --- a/JsonGeneratorTests/Intented_Object_Tests.cpp +++ b/JsonGeneratorTests/Intented_Object_Tests.cpp @@ -54,6 +54,19 @@ namespace JsonGeneratorTests "}"); } + TEST_METHOD(NestedObjects) + { + whenInputIs("{\"key1\":{\"a\":1},\"key2\":{\"b\":2}}"); + outputMustBe( + "{\n" + " \"key1\": {\n" + " \"a\": 1\n" + " },\n" + " \"key2\": {\n" + " \"b\": 2\n" + " }\n" + "}"); + } private: