Пример #1
0
        public void AssertThatSolverReturnsNoMove(int[] heaps)
        {
            // Arrange

            // Act
            var actual = NextMove.Solve(heaps);

            // Assert
            actual.Should().BeNull();
        }
Пример #2
0
        public void AssertThatSolverReturnsWinningMove(int[] heaps, int heap, int number)
        {
            // Arrange
            var expected = new Move(heap: heap, number: number);

            // Act
            var actual = NextMove.Solve(heaps);

            // Assert
            actual.Should().BeEquivalentTo(expected);
        }
Пример #3
0
 public void AssertThatNullHeapsThrowAnException()
 {
     NextMove.Solve(null);
 }