| 6 | namespace ftg { |
| 7 | |
| 8 | TEST(TestGlobalDef, EnumConstToJsonP) { |
| 9 | Json::Value ExpectedJson = util::strToJson(R"( |
| 10 | {"Name" : "A", "Value" : 0} |
| 11 | )"); |
| 12 | EnumConst Const("A", 0); |
| 13 | ASSERT_EQ(Const.toJson().toStyledString(), ExpectedJson.toStyledString()); |
| 14 | } |
| 15 | |
| 16 | TEST(TestGlobalDef, EnumConstFromJsonP) { |
| 17 | Json::Value EnumConstJson = util::strToJson(R"( |
nothing calls this directly
no test coverage detected