Removed JsonValue::null(), moved the instance to JsonObjectBase

This commit is contained in:
Benoit Blanchon committed 2014-08-02 15:55:46 +02:00
1 parent 65e8b6d405
commit 5cc06180e6
5 files changed
+33 -15

No files matched your search

@@ -18,10 +18,10 @@ namespace JsonGeneratorTests
public:
/* TEST_METHOD(Empty)
TEST_METHOD(Empty)
{
mustNotContain("key");
}*/
}
TEST_METHOD(OneString)
{
@@ -35,8 +35,14 @@ namespace JsonGeneratorTests
void mustContain(const char* key, const char* expected)
{
auto actual = (const char*) object[key];
const char* actual = object[key];
Assert::AreEqual(expected, actual);
}
void mustNotContain(const char* key)
{
const char* actual = object[key];
Assert::IsNull(actual);
}
};
}