コード例 #1
0
 public void TestFullHouseAltNoScore()
 {
     DieSet die = new DieSet(1, 2, 3, 4, 5);
     ScoringCategory fullHouseAlt = new FullHouseAltCategory();
     int score = fullHouseAlt.CalculateScoreForRoll(die.getCount());
     Assert.IsTrue(score == 0);
 }
コード例 #2
0
 public void TestFullHouseAltJoker()
 {
     DieSet die = new DieSet(1, 1, 1, 1, 1);
     ScoringCategory fullHouseAlt = new FullHouseAltCategory();
     int score = fullHouseAlt.CalculateScoreForRoll(die.getCount(), true);
     Assert.IsTrue(score == 5);
 }