Example #1
0
        public void Frame2RollsKnockDown4Plus3PinsScore7()
        {
            Frame frame = new Frame();
            frame.Roll(4);
            frame.Roll(3);

            Assert.AreEqual(7, frame.Score);
        }
Example #2
0
        public void Frame2RollsKnockDown4Plus3PinsFinishOK()
        {
            Frame frame = new Frame();
            frame.Roll(4);
            frame.Roll(3);

            Assert.AreEqual(true, frame.IsFinish);
        }
Example #3
0
        public void Frame2RollsKnockDown4Plus3PinsIsStrikeNok()
        {
            Frame frame = new Frame();
            frame.Roll(4);
            frame.Roll(3);

            Assert.AreEqual(false, frame.IsStrike);
        }
Example #4
0
        public void Frame2RollsKnockDown0Plus10PinsSpareOK()
        {
            Frame frame = new Frame();
            frame.Roll(0);
            frame.Roll(10);

            Assert.AreEqual(true, frame.IsSpare);
        }
Example #5
0
        public void Frame2RollsKnockDown0Plus10PinsFinishOk()
        {
            Frame frame = new Frame();
            frame.Roll(0);
            frame.Roll(10);

            Assert.AreEqual(true, frame.IsFinish);
        }
Example #6
0
        public void Frame2RollsKnockDown0Plus10PinsSCore0()
        {
            Frame frame = new Frame();
            frame.Roll(0);
            frame.Roll(10);

            Assert.AreEqual(0, frame.Score);
        }
Example #7
0
        public void Frame2RollsKnockDown10PinsIsStrikeOk()
        {
            Frame frame = new Frame();
            frame.Roll(10);

            Assert.AreEqual(true, frame.IsStrike);
        }
Example #8
0
        public void FrameOneRollKnockDown4PinsSpareNOK()
        {
            Frame frame = new Frame();
            frame.Roll(4);

            Assert.AreEqual(false, frame.IsSpare);
        }
Example #9
0
        public void FrameOneRollKnockDown4PinsScore0()
        {
            Frame frame = new Frame();
            frame.Roll(4);

            Assert.AreEqual(0, frame.Score);
        }
Example #10
0
        public void FrameOneRollKnockDown4PinsFinishNok()
        {
            Frame frame = new Frame();
            frame.Roll(4);

            Assert.AreEqual(false, frame.IsFinish);
        }
Example #11
0
        public void Frame2RollsKnockDown4Plus6PinsSpareOK()
        {
            Frame frame = new Frame();
            frame.Roll(4);
            frame.Roll(6);

            Assert.AreEqual(true, frame.IsSpare);
        }
Example #12
0
        public void Frame2RollsKnockDown4Plus6PinsScore0()
        {
            Frame frame = new Frame();
            frame.Roll(4);
            frame.Roll(6);

            Assert.AreEqual(0, frame.Score);
        }