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 KingShouldBeIncorrectMove() { ChessFigure figure = new King("E1"); Assert.AreEqual(false, figure.Move("E8")); }
public void KingShouldBeCorrectMove() { ChessFigure figure = new King("E1"); Assert.AreEqual(true, figure.Move("E2")); }