Esempio n. 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());
        }
Esempio n. 2
0
        public void GetScoreDoesLookAheadToLastFrame()
        {
            Game g = new Game("XXXXXXXXXXXX");

            Assert.AreEqual(300, g.GetScore());
        }
Esempio n. 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());
 }
Esempio n. 4
0
 public void TestAllZeros()
 {
     ProcessRolling(20, 0);
     Assert.AreEqual(0, _game.GetScore());
 }
Esempio n. 5
0
 public void GetScoreDoesLookAheadToLastFrame()
 {
     Game g = new Game("XXXXXXXXXXXX");
     Assert.AreEqual(300, g.GetScore());
 }