17 namespace WinampRemote
22 TEST_CASE(
"UI/CursorGuard",
"tests Cursor Guard class")
24 Controls::TCursor startCursor = Screen->Cursor;
27 CHECK(Screen->Cursor == crHourGlass);
29 CHECK(Screen->Cursor == startCursor);
33 CHECK(Screen->Cursor == crAppStart);
35 CHECK(Screen->Cursor == startCursor);
38 TEST_CASE(
"Client/Config",
"tests ClientConfig class")
46 std::ostringstream ostr, ostr_old, ostr_new;
48 ostr_old << config_old;
50 CHECK(ostr.str() == ostr_old.str());
53 LONG bottom = config.PlaylistPos().Bottom;
54 config.PlaylistPos().Bottom++;
55 CHECK((bottom + 1) == config.PlaylistPos().Bottom);
59 CHECK(ostr.str() != ostr_new.str());