Пример #1
0
        public void Bishop_should_always_move_between_7_and_13_squares(string current, IEnumerable <string> expected)
        {
            // Arrange
            ChessmenBase bishop = new Bishop(Color.White, current);

            // Act
            IEnumerable <string> moves = bishop.GetPseudoMoves().ToList();

            // Assert
            Assert.That(moves.Count, Is.AtLeast(7));
            Assert.That(moves.Count, Is.AtMost(13));
            Assert.That(moves, Is.EquivalentTo(expected));
        }