Esempio n. 1
0
        public void AssertThatSolverReturnsNoMove(int[] heaps)
        {
            // Arrange

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

            // Assert
            actual.Should().BeNull();
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public void AssertThatNullHeapsThrowAnException()
 {
     NextMove.Solve(null);
 }