public void All_strikes() { var sut = new BowlingGameBareBones(); Roll_many(sut, 12, 10); Assert.Equal(300, (int)sut.Score()); }
public void All_1() { var sut = new BowlingGameBareBones(); Roll_many(sut, 20, 1); Assert.Equal(20, (int)sut.Score()); }
public void Acceptance_scenario() { var sut = new BowlingGameBareBones(); var game = new[] { 1, 4, 4, 5, 6, 4, 5, 5, 10, 0, 1, 7, 3, 6, 4, 10, 2, 8, 6 }; foreach (var pins in game) { sut.Roll((uint)pins); } Assert.Equal(133, (int)sut.Score()); }