Exemplo n.º 1
0
        public void GivenNineFramePlayedWhenThenthFrameIsStrikeThenCanPlayAnExtraLaunch()
        {
            Frame frame;
            var   framebuilder = new FrameBuilder();

            for (int i = 0; i < 9; i++)
            {
                frame = framebuilder.CreateFrame(1, 1);
                _game.AddFrame(frame);
            }
            frame = framebuilder.CreateFrame(10, 0);
            _game.AddFrame(frame);

            frame = framebuilder.CreateFrame(9, 0);
            _game.AddFrame(frame);
            Assert.Equal(11, _game.Count);
            Assert.Equal(11, frame.FrameNumber);
        }