Exemple #1
0
 public void TG04GoldenCopyC1of3()
 {
   int[] rolls = { 7,2,10,10,10,10,7,3,10,10,9,1,10,10,9 };
   string rollsString = "72X X X X 7/X X 9/XX9";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #2
0
 public void TG02GoldenCopyB2of3()
 {
   int[] rolls = { 8,2,8,1,9,1,7,1,8,2,9,1,9,1,10,10,7,1 };
   string rollsString = "8/819/718/9/9/X X 71";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #3
0
 public void TG03GoldenCopyB3of3()
 {
   int[] rolls = { 10,10,9,0,10,7,3,10,8,1,6,3,6,2,9,1,10 };
   string rollsString = "X X 9-X 7/X 8163629/X";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #4
0
 public void T06Bowl010()
 {
   int[] rolls = { 0,10 };
   string rollsString = "-/"; // Remember the space
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #5
0
 public void TG01GoldenCopyB1of3()
 {
   int[] rolls = { 10,9,1,9,1,9,1,9,1,7,0,9,0,10,8,2,8,2,10 };
   string rollsString = "X 9/9/9/9/7-9-X 8/8/X";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #6
0
 public void T03Bowl19()
 {
   int[] rolls = { 1,9 };
   string rollsString = "1/"; // Remember the space
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #7
0
 public void T04BowlStrikeInLastFrame()
 {
   int[] rolls = { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,10,1,1 };
   string rollsString = "111111111111111111X11"; // Remember the space
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #8
0
 public void T01Bowl1()
 {
   int[] rolls = { 1 };
   string rollsString = "1";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #9
0
 public void TG99_NEW_ONES_04_StrikeInFirstRoll()
 {
   int[] rolls = { 10,1,3 };
   string rollsString = "X 13";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #10
0
 public void TG99_NEW_ONES_03_LastFrame3_7_3()
 {
   int[] rolls = { 10,10,10,10,10,10,10,10,10,3,7,3 };
   string rollsString = "X X X X X X X X X 3/3";
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }
Exemple #11
0
 public void TG99_NEW_ONES_02_StrikeZeroSpareOnLastFrame()
 {
   int[] bowls = { 1,9,2,4,10,5,5,2,8,10,7,0,0,10,4,1,10,0,10 };
   string formatted = "1/24X 5/2/X 7--/41X-/";
   Assert.AreEqual(formatted,ScoreDisplayer.RollsScoresFormat(bowls.ToList()));
 }
Exemple #12
0
 public void TG05GoldenCopyC2of3()
 {
   int[] rolls = { 10,10,10,10,9,0,10,10,10,10,10,9,1 };
   string rollsString = "X X X X 9-X X X X X9/";  
   Assert.AreEqual(rollsString,ScoreDisplayer.RollsScoresFormat(rolls.ToList()));
 }