Ejemplo n.º 1
0
        public void WhenAPlayerHitsSomePins_ScoreIsEqualToThat(int pins, int expectedScore)
        {
            //Arrange
            var newGameInstance = new BowlingKata.Game();

            //Act
            newGameInstance.Roll(pins);
            var actualScore = newGameInstance.Score();

            //Assert
            Assert.AreEqual(expectedScore, actualScore);
        }
Ejemplo n.º 2
0
        public void WhenAPlayerHits3and3_ScoreIsEqualto6(int firstRollPins, int secondRollPins, int expectedScore)
        {
            //Arrange
            var newGameInstance = new BowlingKata.Game();

            //Act
            newGameInstance.Roll(firstRollPins);
            newGameInstance.Roll(secondRollPins);
            var score = newGameInstance.Score();

            //Assert
            Assert.AreEqual(expectedScore, score);
        }