コード例 #1
0
        public void GetScoreSubtractsFirstRollInCaseOfSpare()
        {
            Game g = new Game("5/5/5/5/5/5/5/5/5/5/5");

            Assert.AreEqual(150, g.GetScore());
        }
コード例 #2
0
        public void GetScoreDoesLookAheadToLastFrame()
        {
            Game g = new Game("XXXXXXXXXXXX");

            Assert.AreEqual(300, g.GetScore());
        }
コード例 #3
0
 public void GetScoreSubtractsFirstRollInCaseOfSpare()
 {
     Game g = new Game("5/5/5/5/5/5/5/5/5/5/5");
     Assert.AreEqual(150, g.GetScore());
 }
コード例 #4
0
 public void TestAllZeros()
 {
     ProcessRolling(20, 0);
     Assert.AreEqual(0, _game.GetScore());
 }
コード例 #5
0
 public void GetScoreDoesLookAheadToLastFrame()
 {
     Game g = new Game("XXXXXXXXXXXX");
     Assert.AreEqual(300, g.GetScore());
 }