public void Equals_TwoOppositeColorQueens_AreNotEqual() { Queen queen1 = new Queen(new Board(), PieceColor.White); Queen queen2 = new Queen(new Board(), PieceColor.Black); Assert.AreNotEqual(queen1, queen2); }
public void Equals_TwoSameColorQueens_AreEqual() { Queen queen1 = new Queen(new Board(), PieceColor.White); Queen queen2 = new Queen(new Board(), PieceColor.White); Queen queen3 = new Queen(new Board(), PieceColor.Black); Queen queen4 = new Queen(new Board(), PieceColor.Black); Assert.AreEqual(queen1, queen2); Assert.AreEqual(queen3, queen4); }
public void Setup_WhenBoardIsSetup_FourthFilePositionsOnTheFirstAndEightRankReturnQueens() { var expectedWhiteQueen = new Queen(Board, PieceColor.White); var expectedBlackQueen = new Queen(Board, PieceColor.Black); Board.Setup(); Assert.AreEqual(expectedWhiteQueen, GetSquare(4, 1).Occupier); Assert.AreEqual(expectedBlackQueen, GetSquare(4, 8).Occupier); }