public void Ascii_Should_ReturnCorrectFormat() { // Arrange SUT board = new SUT(); string actual; // Act actual = board.Ascii(); // Assert Assert.AreEqual(" +------------------------+\n" + " 8 | r n b q k b n r |\n" + " 7 | p p p p p p p p |\n" + " 6 | . . . . . . . . |\n" + " 5 | . . . . . . . . |\n" + " 4 | . . . . . . . . |\n" + " 3 | . . . . . . . . |\n" + " 2 | P P P P P P P P |\n" + " 1 | R N B Q K B N R |\n" + " +------------------------+\n" + " a b c d e f g h\n", actual); }
public void Ascii_Should_ReturnEmptyBoard() { // Arrange SUT board = new SUT(); string actual; // Act board.Clear(); actual = board.Ascii(); // Assert Assert.AreEqual(" +------------------------+\n" + " 8 | . . . . . . . . |\n" + " 7 | . . . . . . . . |\n" + " 6 | . . . . . . . . |\n" + " 5 | . . . . . . . . |\n" + " 4 | . . . . . . . . |\n" + " 3 | . . . . . . . . |\n" + " 2 | . . . . . . . . |\n" + " 1 | . . . . . . . . |\n" + " +------------------------+\n" + " a b c d e f g h\n", actual); }