Small refactoring of the tests

This commit is contained in:
Benoît Blanchon
2014-06-27 13:09:52 +02:00
parent ff4060f5d1
commit 4f4b35bd41
2 changed files with 48 additions and 42 deletions

View File

@ -13,13 +13,13 @@ namespace JsonGeneratorTests
TEST_METHOD(Empty)
{
assertJsonIs("{}");
jsonIs("{}");
}
TEST_METHOD(OneString)
{
add("key", "value");
assertJsonIs("{\"key\":\"value\"}");
jsonIs("{\"key\":\"value\"}");
}
private:
@ -30,7 +30,7 @@ namespace JsonGeneratorTests
hash.add(key, value);
}
void assertJsonIs(const char* expected)
void jsonIs(const char* expected)
{
char buffer[256];