Exemplo n.º 1
0
 public void ToIntValueConvertsStrikeTo11()
 {
     Roll r1 = new Roll('X');
     Assert.AreEqual(11, r1.ToIntValue());
 }
Exemplo n.º 2
0
 public void ToIntValueConvertsHyphenToZero()
 {
     Roll r1 = new Roll('-');
     Assert.AreEqual(0, r1.ToIntValue());
 }
Exemplo n.º 3
0
 public void ToIntValueConvertsSpareTo10()
 {
     Roll r1 = new Roll('/');
     Assert.AreEqual(10, r1.ToIntValue());
 }
Exemplo n.º 4
0
 public void ToIntValueConvertsArbitraryStrNumberToInt()
 {
     Roll r1 = new Roll('4');
     Assert.AreEqual(4, r1.ToIntValue());
 }
Exemplo n.º 5
0
        public void ToIntValueConvertsHyphenToZero()
        {
            Roll r1 = new Roll('-');

            Assert.AreEqual(0, r1.ToIntValue());
        }
Exemplo n.º 6
0
        public void ToIntValueConvertsStrikeTo11()
        {
            Roll r1 = new Roll('X');

            Assert.AreEqual(11, r1.ToIntValue());
        }
Exemplo n.º 7
0
        public void ToIntValueConvertsSpareTo10()
        {
            Roll r1 = new Roll('/');

            Assert.AreEqual(10, r1.ToIntValue());
        }
Exemplo n.º 8
0
        public void ToIntValueConvertsArbitraryStrNumberToInt()
        {
            Roll r1 = new Roll('4');

            Assert.AreEqual(4, r1.ToIntValue());
        }