diff --git a/JsonGeneratorTests/IntentedPrintTests.cpp b/JsonGeneratorTests/IntentedPrintTests.cpp index cfcf8458..deec99ec 100644 --- a/JsonGeneratorTests/IntentedPrintTests.cpp +++ b/JsonGeneratorTests/IntentedPrintTests.cpp @@ -65,6 +65,17 @@ namespace JsonGeneratorTests "}"); } + TEST_METHOD(ObjectWithEmptyNestedObjects) + { + whenInputIs("{\"key1\":{},\"key2\":{}}"); + outputMustBe( + "{\n" + " \"key1\": {},\n" + " \"key2\": {}\n" + "}"); + } + + private: void whenInputIs(const char input[])