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

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

View File

@ -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);
}
};
}