Пример #1
0
        public void FrameWithTwoRegularThrowIsDone()
        {
            var frame = new Frame();

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

            Assert.AreEqual(true, frame.IsDone());
        }
Пример #2
0
        public void FrameWithSpareThrowIsDone()
        {
            var frame = new Frame();

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

            Assert.AreEqual(true, frame.IsDone());
        }
Пример #3
0
        public void FrameWithSpareIsSpare()
        {
            var frame = new Frame();

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

            Assert.IsTrue(frame.IsSpare());
        }
Пример #4
0
        public void FrameWithStrikeThrowIsDone()
        {
            var frame = new Frame();

            frame.AddThrow(10);

            Assert.AreEqual(true, frame.IsDone());
        }
Пример #5
0
        public void FrameWithStrikeIsStrike()
        {
            var frame = new Frame();

            frame.AddThrow(10);

            Assert.IsTrue(frame.IsStrike());
        }
Пример #6
0
        public void FrameWithOneRegularThrowIsNotDone()
        {
            var frame = new Frame();

            frame.AddThrow(1);

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