public void Scoring_Strike() { // arrange var bowling = new Katas.Bowling.Game(); bowling.Throw(10); // act var score = bowling.TotalScore(); var scoreBoard = bowling.ScoreBoard(); // assert Assert.Equal(10, score); Assert.True(scoreBoard.StartsWith("Frame 1: 10 = X")); }
public void ScoreBoard_PerfectGame() { // arrange var bowling = new Katas.Bowling.Game(); for (int i = 0; i < 12; i++) { bowling.Throw(10); } // act and assert Assert.True(bowling.ScoreBoard().Contains("Frame 10: 300 = X X X")); }