示例#1
0
        public void als_de_eerste_frame_een_spare_dan_is_de_frame_score_10()
        {
            var game = new Game();

            game.Gooi(6);
            game.Gooi(4);

            Assert.AreEqual(10, game.ScoreVoorFrame(1));
        }
示例#2
0
        public void als_de_eerste_frame_een_spare_en_de_3e_gooi_5_dan_is_de_frame_score_van_het_1e_frame_15()
        {
            var game = new Game();

            game.Gooi(6);
            game.Gooi(4);

            game.Gooi(5);

            Assert.AreEqual(15, game.ScoreVoorFrame(1));
        }
示例#3
0
        public void ThrowTwoConsecutive1PinsGivesScoreForFrame1Is2()
        {
            var game = new Game();

            game.Gooi(1);
            game.Gooi(1);

            Assert.AreEqual(2, game.ScoreVoorFrame(1));
        }
示例#4
0
        public void ThrowThreeConsecutive1PinsGivesScoreForFrame2Is3()
        {
            var game = new Game();

            game.Gooi(1);
            game.Gooi(1);
            game.Gooi(1);

            Assert.AreEqual(3, game.ScoreVoorFrame(2));
        }
示例#5
0
        public void ThrowStrikeAnd1And1ShouldSetScoreForFrame1To12()
        {
            var game = new Game();

            game.Gooi(10);
            game.Gooi(1);
            game.Gooi(1);

            Assert.AreEqual(12, game.ScoreVoorFrame(1));
        }
示例#6
0
        public void ThrowSpareAnd1ShouldSetScoreForFrame1To11()
        {
            var game = new Game();

            game.Gooi(4);
            game.Gooi(6);
            game.Gooi(1);

            Assert.AreEqual(11, game.ScoreVoorFrame(1));
        }
示例#7
0
        public void ThrowOnlySpareShouldSetScoreTo10()
        {
            var game = new Game();

            game.Gooi(4);
            game.Gooi(6);

            Assert.AreEqual(10, game.ScoreVoorFrame(1));
        }
示例#8
0
        public void Throw2ConsecutiveStrikesAnd1ShouldSetScoreForFrame1To21()
        {
            var game = new Game();

            game.Gooi(10);
            game.Gooi(10);
            game.Gooi(1);

            Assert.AreEqual(21, game.ScoreVoorFrame(1));
        }
示例#9
0
        public void Throw1PinsGivesScoreForFrame1Is1()
        {
            var game = new Game();

            game.Gooi(1);

            Assert.AreEqual(1, game.ScoreVoorFrame(1));
        }
示例#10
0
 public void GameTest1()
 {
     Game game = new Game();
     Assert.AreEqual(0, game.CurrentScore);
     game.Gooi(10);
     Assert.AreEqual(10, game.CurrentScore);
     Assert.AreEqual(10, game.ScoreVoorFrame(1));
     game.Gooi(10);
     Assert.AreEqual(30, game.CurrentScore);
     Assert.AreEqual(20, game.ScoreVoorFrame(1));
     Assert.AreEqual(30, game.ScoreVoorFrame(2));
     game.Gooi(3);
     Assert.AreEqual(39, game.CurrentScore);
     Assert.AreEqual(23, game.ScoreVoorFrame(1));
     Assert.AreEqual(36, game.ScoreVoorFrame(2));
     Assert.AreEqual(39, game.ScoreVoorFrame(3));
 }