Exemple #1
0
        public void GameOver_ShouldReturnTrueGivenPlayerOneWins()
        {
            PlayersTurns subject = new PlayersTurns(Bool.True, Bool.False, Bool.False);

            //Act
            Bool actual = subject.GameOver();

            //Assert
            ((bool)actual).Should().BeTrue();
        }
Exemple #2
0
        public void GameOver_ShouldReturnFalseGivenGameNotOver()
        {
            PlayersTurns subject = new PlayersTurns(Bool.False, Bool.False, Bool.False);

            //Act
            Bool actual = subject.GameOver();

            //Assert
            ((bool)actual).Should().BeFalse();
        }
Exemple #3
0
        public void GameOver_ShouldReturnTrueGivenCatsGame()
        {
            //Arrange
            PlayersTurns subject = new PlayersTurns(Bool.False, Bool.False, Bool.True);

            //Act
            Bool actual = subject.GameOver();

            //Assert
            ((bool)actual).Should().BeTrue();
        }