コード例 #1
0
 public void TestFullHouseAlt_MultiUseCategory_ThrowsException()
 {
     DieSet dieSet = new DieSet(1, 1, 2, 3, 1);
     ScoringCategory fullHouseAlt = new FullHouseAltCategory();
     int score = fullHouseAlt.Score(dieSet.getCount());
     score = fullHouseAlt.Score(dieSet.getCount());
 }
コード例 #2
0
 public void TestScoreFullHouseAlt()
 {
     DieSet die = new DieSet(6, 6, 6, 5, 5);
     ScoringCategory fullHouseAlt = new FullHouseAltCategory();
     Assert.IsTrue(fullHouseAlt.Name == "Full House");
     Assert.IsTrue(fullHouseAlt.HasBeenUsed == false);
     Assert.IsTrue(fullHouseAlt.Lower);
     Assert.IsFalse(fullHouseAlt.Upper);
     fullHouseAlt.Score(die.getCount());
     Assert.IsTrue(fullHouseAlt.HasBeenUsed == true);
     Assert.IsTrue(fullHouseAlt.FinalScore == 28);
 }