public void DetectCurrentMoveIsOverwrite() { //setup: GridUpdater.InsertIntoGrid(new Tuple <ushort, ushort>(1, 1), Moves.O); //act MoveCategory actualError = TurnValidator.CurrentMoveIsOverwrite(new Tuple <ushort, ushort>(1, 1)); //assert actualError.Should().Be(MoveCategory.PositionAlreadyFilledError); }
public void DetectCurrentMoveIsNotOverwrite() { MoveCategory actualError = TurnValidator.CurrentMoveIsOverwrite(new Tuple <ushort, ushort>(0, 0)); actualError.Should().Be(MoveCategory.MoveIsValid); }
public void CorrectlyDetectConsectiveMovesThatAreTheDifferent(Moves previousMove, Moves newMove) { MoveCategory areSame = TurnValidator.ThisMoveIsNotSameAsLastMove(previousMove, newMove); areSame.Should().Be(MoveCategory.MoveIsValid); }