Example #1
0
TEST(ConnectXTest, checkWhiteTurn)
{
	ConnectX obj;
	obj.showBoard();
	obj.placePiece(0);
	obj.showBoard();
	ASSERT_EQ(obj.whoseTurn(),1);
}
Example #2
0
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);
}
Example #3
0
TEST(ConnectXTest, checkPlacePieceBelowZero)
{
	ConnectX obj;
	obj.placePiece(-1);
	obj.showBoard();
	ASSERT_EQ(obj.whoseTurn(),1);
}
Example #4
0
TEST(ConnectXTest, sanityCheck) // Display board basic test.
{
	ConnectX conn;
	conn.showBoard();
	ASSERT_TRUE(true);
	
}
Example #5
0
TEST(ConnectXTest, checkBlackTurn)
{
	ConnectX obj;
	obj.showBoard();
	ASSERT_EQ(obj.whoseTurn(),2);
}
Example #6
0
TEST(ConnectXTest, showTest)
{
  ConnectX cx;
  cx.showBoard();
}