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); }
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); }