public void Color_Should_Return_CorrectValues(string pgn, ChessboardControl.ChessColor expected) { // Arrange SUT chessSquare; // Act chessSquare = new SUT(pgn); // Assert Assert.AreEqual(expected, chessSquare.Color); }
public void Clone_Should_ReturnProperlyInitializedClass() { // Arrange ChessboardControl.ChessPieceKind originalPieceKind = ChessboardControl.ChessPieceKind.Pawn; ChessboardControl.ChessColor originalColor = ChessboardControl.ChessColor.Black; SUT originalPiece; SUT clonedPiece; // Act originalPiece = new SUT(originalPieceKind, originalColor); clonedPiece = originalPiece.Clone(); originalPiece.Kind = ChessboardControl.ChessPieceKind.Rook; originalPiece.Color = ChessboardControl.ChessColor.White; // Assert Assert.AreEqual(originalPieceKind, clonedPiece.Kind); Assert.AreEqual(originalColor, clonedPiece.Color); }