public void TestFourOfAKind_MultiUseCategory_ThrowsException()
 {
     DieSet dieSet = new DieSet(1, 1, 2, 3, 1);
     ScoringCategory fourKind = new FourOfAKindCategory();
     int score = fourKind.Score(dieSet.getCount());
     score = fourKind.Score(dieSet.getCount());
 }
 public void TestFourOfAKindNoScore()
 {
     DieSet die = new DieSet(1, 2, 3, 4, 5);
     ScoringCategory fourKind = new FourOfAKindCategory();
     int score = fourKind.CalculateScoreForRoll(die.getCount());
     Assert.IsTrue(score == 0);
 }
 public void TestScoreFourOfAKind()
 {
     DieSet die = new DieSet(6, 6, 1, 6, 6);
     ScoringCategory fourKind = new FourOfAKindCategory();
     Assert.IsTrue(fourKind.Name == "Four of a Kind");
     Assert.IsTrue(fourKind.HasBeenUsed == false);
     Assert.IsTrue(fourKind.Lower);
     Assert.IsFalse(fourKind.Upper);
     fourKind.Score(die.getCount());
     Assert.IsTrue(fourKind.HasBeenUsed == true);
     Assert.IsTrue(fourKind.FinalScore == 25);
 }
 public void TestFourOfAKindRules()
 {
     ScoringCategory fourKind = new FourOfAKindCategory();
     Assert.AreEqual("Four of a Kind: If there are four matching dice, score the total of all dice.  Otherwise, score 0.", fourKind.getRules());
 }