Example #1
0
        public void GetPossibleMoves_WhenThereIsNoPossibleMove_And_BoardIsInitialized_ReturnsListOfPossibleMoves(Color color, string currentLocation, int expectedValidMoves)
        {
            //Arrange
            _sut = InitializeBishop(color, currentLocation);

            //Act
            var result = _sut.GetPossibleMoves(_board);

            //Assert
            result.Should().NotBeNull();
            result.Should().NotBeEmpty();
            result.Count().Should().Be(expectedValidMoves);
        }