/* **************************************************************************** * * present - no output expected, just exercising the code */ TEST(RestrictionString, present) { RestrictionString restrictionString; utInit(); restrictionString.set(""); restrictionString.present(""); restrictionString.set("STR"); restrictionString.present(""); utExit(); }
/* **************************************************************************** * * c_str - */ TEST(RestrictionString, c_str) { RestrictionString restrictionString; utInit(); restrictionString.set("STR"); EXPECT_STREQ("STR", restrictionString.c_str()); utExit(); }
/* **************************************************************************** * * isEmptSetAndGet - */ TEST(RestrictionString, isEmptySetAndGet) { RestrictionString restrictionString; utInit(); restrictionString.string = ""; EXPECT_TRUE(restrictionString.isEmpty()); restrictionString.set("STR"); EXPECT_FALSE(restrictionString.isEmpty()); EXPECT_STREQ("STR", restrictionString.get().c_str()); utExit(); }