TEST(ConnectXTest, checkWhiteTurn) { ConnectX obj; obj.showBoard(); obj.placePiece(0); obj.showBoard(); ASSERT_EQ(obj.whoseTurn(),1); }
TEST(ConnectXTest, checkHeight) { ConnectX obj; obj.showBoard(); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(0); obj.showBoard(); obj.placePiece(9); obj.placePiece(-5); obj.placePiece(0); obj.showBoard(); ASSERT_EQ(obj.whoseTurn(),2); }
TEST(ConnectXTest, checkPlacePieceBelowZero) { ConnectX obj; obj.placePiece(-1); obj.showBoard(); ASSERT_EQ(obj.whoseTurn(),1); }
TEST(ConnectXTest, sanityCheck) // Display board basic test. { ConnectX conn; conn.showBoard(); ASSERT_TRUE(true); }
TEST(ConnectXTest, checkBlackTurn) { ConnectX obj; obj.showBoard(); ASSERT_EQ(obj.whoseTurn(),2); }
TEST(ConnectXTest, showTest) { ConnectX cx; cx.showBoard(); }