public void TestTwoPairs_MultiUseCategory_ThrowsException()
 {
     DieSet dieSet = new DieSet(1, 1, 2, 3, 1);
     ScoringCategory twoPairs = new TwoPairsCategory();
     int score = twoPairs.Score(dieSet.getCount());
     score = twoPairs.Score(dieSet.getCount());
 }
 public void TestTwoPairsNoScore()
 {
     DieSet die = new DieSet(1, 2, 3, 4, 5);
     ScoringCategory twoPairs = new TwoPairsCategory();
     int score = twoPairs.CalculateScoreForRoll(die.getCount());
     Assert.IsTrue(score == 0);
 }
 public void TestTwoPairsJoker()
 {
     DieSet die = new DieSet(6, 6, 6, 6, 6);
     ScoringCategory twoPairs = new TwoPairsCategory();
     int score = twoPairs.CalculateScoreForRoll(die.getCount(), true);
     Assert.AreEqual(24, score);
 }
 public void TestTwoPairs()
 {
     DieSet die = new DieSet(6, 6, 5, 5, 2);
     ScoringCategory twoPairs = new TwoPairsCategory();
     int score = twoPairs.CalculateScoreForRoll(die.getCount());
     Assert.IsTrue(score == 22);
 }
 public void TestScoreTwoPairs()
 {
     DieSet die = new DieSet(1, 6, 4, 4, 1);
     ScoringCategory twoPairs = new TwoPairsCategory();
     Assert.IsTrue(twoPairs.Name == "Two Pairs");
     Assert.IsTrue(twoPairs.HasBeenUsed == false);
     Assert.IsTrue(twoPairs.Lower);
     Assert.IsFalse(twoPairs.Upper);
     twoPairs.Score(die.getCount());
     Assert.IsTrue(twoPairs.HasBeenUsed == true);
     Assert.IsTrue(twoPairs.FinalScore == 10);
 }
 public void TestTwoPairsRules()
 {
     ScoringCategory twoPairs = new TwoPairsCategory();
     Assert.AreEqual("Two Pairs: If there are two of one value and two of a different value, score the total of those four dice.  Otherwise, score 0.", twoPairs.getRules());
 }