diff --git a/JsonGeneratorTests/JsonArrayTests.cpp b/JsonGeneratorTests/JsonArrayTests.cpp
index 4f14309c..b810564f 100644
--- a/JsonGeneratorTests/JsonArrayTests.cpp
+++ b/JsonGeneratorTests/JsonArrayTests.cpp
@@ -16,14 +16,14 @@ namespace JsonGeneratorTests
AssertJsonIs("[]");
}
- TEST_METHOD(OneString)
+ TEST_METHOD(AddOneString)
{
arr.add("hello");
AssertJsonIs("['hello']");
}
- TEST_METHOD(TwoStrings)
+ TEST_METHOD(AddTwoStrings)
{
arr.add("hello");
arr.add("world");
@@ -31,7 +31,7 @@ namespace JsonGeneratorTests
AssertJsonIs("['hello','world']");
}
- TEST_METHOD(OverCapacity)
+ TEST_METHOD(AddOneStringOverCapacity)
{
arr.add("hello");
arr.add("world");
@@ -40,13 +40,21 @@ namespace JsonGeneratorTests
AssertJsonIs("['hello','world']");
}
- TEST_METHOD(OneNumber)
+ TEST_METHOD(AddOneNumber)
{
arr.add(3.14);
AssertJsonIs("[3.14]");
}
+ TEST_METHOD(AddTwoNumbers)
+ {
+ arr.add(3.14);
+ arr.add(2.72);
+
+ AssertJsonIs("[3.14,2.72]");
+ }
+
void AssertJsonIs(const char* expected)
{
char buffer[256];
diff --git a/JsonGeneratorTests/JsonGeneratorTests.vcxproj b/JsonGeneratorTests/JsonGeneratorTests.vcxproj
index 845c27bc..fd6b59df 100644
--- a/JsonGeneratorTests/JsonGeneratorTests.vcxproj
+++ b/JsonGeneratorTests/JsonGeneratorTests.vcxproj
@@ -53,7 +53,7 @@
Level3
Disabled
$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)
- WIN32;_DEBUG;%(PreprocessorDefinitions)
+ _DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
true