TEST(ClipboardTests, empty_openCalled_returnsTrue) { Clipboard clipboard; clipboard.open(0); bool actual = clipboard.empty(); EXPECT_EQ(true, actual); }
TEST(ClipboardTests, getTime_openAndEmpty_returnsOne) { Clipboard clipboard; clipboard.open(1); clipboard.empty(); Clipboard::Time actual = clipboard.getTime(); EXPECT_EQ(1, actual); }
TEST(ClipboardTests, empty_singleFormat_hasReturnsFalse) { Clipboard clipboard; clipboard.open(0); clipboard.add(Clipboard::kText, "synergy rocks!"); clipboard.empty(); bool actual = clipboard.has(Clipboard::kText); EXPECT_FALSE(actual); }