public void TestThreeOfAKind_MultiUseCategory_ThrowsException()
 {
     DieSet dieSet = new DieSet(1, 1, 2, 3, 1);
     ScoringCategory threeKind = new ThreeOfAKindCategory();
     int score = threeKind.Score(dieSet.getCount());
     score = threeKind.Score(dieSet.getCount());
 }
 public void TestThreeOfAKindNoScore()
 {
     DieSet die = new DieSet(1, 2, 3, 4, 5);
     ScoringCategory threeKind = new ThreeOfAKindCategory();
     int score = threeKind.CalculateScoreForRoll(die.getCount());
     Assert.IsTrue(score == 0);
 }
 public void TestScoreThreeOfAKind()
 {
     DieSet die = new DieSet(1, 6, 1, 4, 1);
     ScoringCategory threeKind = new ThreeOfAKindCategory();
     Assert.IsTrue(threeKind.Name == "Three of a Kind");
     Assert.IsTrue(threeKind.HasBeenUsed == false);
     Assert.IsTrue(threeKind.Lower);
     Assert.IsFalse(threeKind.Upper);
     threeKind.Score(die.getCount());
     Assert.IsTrue(threeKind.HasBeenUsed == true);
     Assert.IsTrue(threeKind.FinalScore == 13);
 }
 public void TestThreeOfAKindRules()
 {
     ScoringCategory threeKind = new ThreeOfAKindCategory();
     Assert.AreEqual("Three of a Kind: If there are three matching dice, score the total of all dice.  Otherwise, score 0.", threeKind.getRules());
 }