|
|
@@ -1,5 +1,6 @@
|
|
|
#include "CppUnitTest.h"
|
|
|
#include "JsonArray.h"
|
|
|
+#include "JsonHashTable.h"
|
|
|
|
|
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
|
|
|
|
|
@@ -109,6 +110,15 @@ namespace JsonGeneratorTests
|
|
|
jsonIs("[[]]");
|
|
|
}
|
|
|
|
|
|
+ TEST_METHOD(AddOneEmptyNestedHash)
|
|
|
+ {
|
|
|
+ JsonHashTable<1> nestedHash;
|
|
|
+
|
|
|
+ addNested(nestedHash);
|
|
|
+
|
|
|
+ jsonIs("[{}]");
|
|
|
+ }
|
|
|
+
|
|
|
TEST_METHOD(AddOneNestedArrayWithOneItem)
|
|
|
{
|
|
|
JsonArray<1> nestedArray;
|