static void Main(string[] args) { Bishop chessBishop = new Bishop("Chess", 50, "wood", 100); chessBishop.Move(); King chessKing = new King("Chess", 3, "iron", 10); chessKing.Move(); Knight chessKnight = new Knight("Chess", 2, "keramick", 1); chessKnight.Move(); }
public void BishopShouldBeIncorrectMove() { ChessFigure figure = new Bishop("C1"); Assert.AreEqual(false, figure.Move("C3")); }
public void BishopShouldBeCorrectMove() { ChessFigure figure = new Bishop("C1"); Assert.AreEqual(true, figure.Move("E3")); }