예제 #1
0
        public void should_CreateAGame_When_Invoked(string bowlingString, int frameCount, int gamesScore)
        {
            var gameCreator =
                new GameCreator(new BowlingFramesCreator(new BowlingStringSplitter(),
                                                         new BowlingFrameCreator(new BowlScorer()), new BonusScorer()));
            var game = gameCreator.Create(bowlingString);

            Assert.That(game.Frames.Count, Is.EqualTo(frameCount));
            Assert.That(game.Score(), Is.EqualTo(gamesScore));
        }