public void EveryKnockedPinGivesOnePoint(int count) { BowlingGame sut = CreateSut(); sut.Roll(count); Assert.That(sut.Score(), Is.EqualTo(count)); }
public void RollOver10FramesThrowsException() { for (int i = 0; i < 20; i++) { bowlingGame.Roll(4); } var ex = Assert.Throws <Exception>(() => bowlingGame.Roll(4)); Assert.AreEqual("You cannot roll another ball. Bowling game has been completed!", ex.Message); }