public void Move_Should_ThrowException_When_MoveIsInvalid() { // Arrange SUT board = new SUT(); // Act ChessMove invalidMove = board.GetMoveValidity(new ChessSquare("e2"), new ChessSquare("e5")); board.Move(invalidMove); }
public void GetDisambiguator_Should_ReturnCorrectValue(string FENPosition, string from, string to, string expectedSAN) { // Arrange SUT board = new SUT(FENPosition); ChessMove actualMove; // Act actualMove = board.GetMoveValidity(new ChessSquare(from), new ChessSquare(to)); // Assert Assert.AreEqual(expectedSAN, actualMove.ToSAN); }