public void MoveTwoRowstRowThreeToRowOne_NotValid() { //Arrange var canMove = new CanMove_RowOneSpace(); var firstTile = IslandTileAtRowThreeColumnThree(); var secondTile = IslandTileAtRowOneColumnThree(); var currentPlayer = new Player(); //Act var validation = canMove.IsValid(firstTile, secondTile, currentPlayer); //Assert Assert.AreEqual(validation.IsValid, false); Assert.AreEqual(validation.ErrorMessage, CanMoveErrorConstants.ONLY_MOVE_ONE_ROW); }
public void MoveOneRowRowTwoToRowOne_IsValid() { //Arrange var canMove = new CanMove_RowOneSpace(); var firstTile = IslandTileAtRowTwoColumnThree(); var secondTile = IslandTileAtRowOneColumnThree(); var currentPlayer = new Player(); //Act var validation = canMove.IsValid(firstTile, secondTile, currentPlayer); //Assert Assert.AreEqual(validation.IsValid, true); Assert.AreEqual(validation.ErrorMessage, null); }