Exemple #1
0
        public void CreateWhiteBishopTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var whiteBishop  = pieceFactory.Create("bishop");

            Assert.IsNotNull(whiteBishop);
        }
Exemple #2
0
        public void CreateWhiteRookTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var whiteRook    = pieceFactory.Create("rook");

            Assert.IsNotNull(whiteRook);
        }
Exemple #3
0
        public void CreateWhiteKnightTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var whiteKnight  = pieceFactory.Create("knight");

            Assert.IsNotNull(whiteKnight);
        }
Exemple #4
0
        public void CreateWhiteQueenTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var whiteQueen   = pieceFactory.Create("queen");

            Assert.IsNotNull(whiteQueen);
        }
Exemple #5
0
        public void CreateWhiteKingTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var whiteKing    = pieceFactory.Create("king");

            Assert.IsNotNull(whiteKing);
        }
Exemple #6
0
        public void WhiteFactoryNullTest()
        {
            var pieceFactory = new WhitePieceFactory();
            var nullPiece    = pieceFactory.Create("noPiece");

            Assert.IsNull(nullPiece);
        }
Exemple #7
0
        public void CreateWhitePawnTest()
        {
            var pieceFactory = new WhitePieceFactory();

            var whitePawn = pieceFactory.Create("pawn");

            Assert.IsNotNull(whitePawn);
        }