public void Can_Clear_Piece_From_Position() { // arrange var boardPosition = new BoardPosition(1, 1, new Piece(2, 3, PieceColor.Green)); // act boardPosition.ClearPieceFromPosition(); // assert Assert.IsFalse(boardPosition.ContainsPiece()); }
public void Verifies_If_Board_Position_Is_Occupied_By_Piece() { // arrange var boardPositionWithPiece = new BoardPosition(1, 1, new Piece(2, 3, PieceColor.Green)); var boardPositionWithoutPiece = new BoardPosition(1, 1); // act // assert Assert.IsTrue(boardPositionWithPiece.ContainsPiece()); Assert.IsFalse(boardPositionWithoutPiece.ContainsPiece()); }