diff --git a/JsonGeneratorTests/JsonArrayTests.cpp b/JsonGeneratorTests/JsonArrayTests.cpp index 11ab0486..b317bafb 100644 --- a/JsonGeneratorTests/JsonArrayTests.cpp +++ b/JsonGeneratorTests/JsonArrayTests.cpp @@ -15,21 +15,21 @@ namespace JsonGeneratorTests jsonIs("[]"); } - TEST_METHOD(AddNull) + TEST_METHOD(Null) { addValue((char*)0); jsonIs("[null]"); } - TEST_METHOD(AddOneString) + TEST_METHOD(OneString) { addValue("hello"); jsonIs("[\"hello\"]"); } - TEST_METHOD(AddTwoStrings) + TEST_METHOD(TwoStrings) { addValue("hello"); addValue("world"); diff --git a/JsonGeneratorTests/JsonHashTableTests.cpp b/JsonGeneratorTests/JsonHashTableTests.cpp index feee8c06..05ddd6b9 100644 --- a/JsonGeneratorTests/JsonHashTableTests.cpp +++ b/JsonGeneratorTests/JsonHashTableTests.cpp @@ -22,6 +22,13 @@ namespace JsonGeneratorTests jsonIs("{\"key\":\"value\"}"); } + TEST_METHOD(TwoStrings) + { + add("key1", "value1"); + add("key2", "value2"); + jsonIs("{\"key1\":\"value1\",\"key2\":\"value2\"}"); + } + private: template