Esempio n. 1
0
        public void FrameWithStrikeThrowIsDone()
        {
            var frame = new Frame();

            frame.AddThrow(10);

            Assert.AreEqual(true, frame.IsDone());
        }
Esempio n. 2
0
        public void FrameWithOneRegularThrowIsNotDone()
        {
            var frame = new Frame();

            frame.AddThrow(1);

            Assert.AreEqual(false, frame.IsDone());
        }
Esempio n. 3
0
        public void FrameWithTwoRegularThrowIsDone()
        {
            var frame = new Frame();

            frame.AddThrow(1);
            frame.AddThrow(1);

            Assert.AreEqual(true, frame.IsDone());
        }
Esempio n. 4
0
        public void FrameWithSpareThrowIsDone()
        {
            var frame = new Frame();

            frame.AddThrow(4);
            frame.AddThrow(6);

            Assert.AreEqual(true, frame.IsDone());
        }