コード例 #1
0
        public void GivenBoardWithEqualOutCome_WhenVerifyIsCalled_ThenPlayerShouldBe0()
        {
            // Arrange
            var endGameStrategy = CreateEndGameStrategy();
            var board           = BoardFactory.CreateBoardWithNoWin();

            // Act
            var result = endGameStrategy.Verify(board);

            // Assert
            result.winner.Should().Be(0);
        }
コード例 #2
0
        public void GivenBoardWithEqualOutCome_WhenVerifyIsCalled_ThenGameCompleteShouldBeTrue()
        {
            // Arrange
            var endGameStrategy = CreateEndGameStrategy();
            var board           = BoardFactory.CreateBoardWithNoWin();

            // Act
            var result = endGameStrategy.Verify(board);

            // Assert
            result.isGameComplete.Should().BeTrue();
        }