public void TestThreeOfAKindAlt_MultiUseCategory_ThrowsException() { DieSet dieSet = new DieSet(1, 1, 2, 3, 1); ScoringCategory threeKindAlt = new ThreeOfAKindAltCategory(); int score = threeKindAlt.Score(dieSet.getCount()); score = threeKindAlt.Score(dieSet.getCount()); }
public void TestThreeofAKindAltMore() { DieSet die = new DieSet(6, 6, 6, 6, 6); ScoringCategory threeKindAlt = new ThreeOfAKindAltCategory(); int score = threeKindAlt.CalculateScoreForRoll(die.getCount()); Assert.AreEqual(18, score); }
public void TestThreeOfAKindAltNoScore() { DieSet die = new DieSet(1, 2, 3, 4, 5); ScoringCategory threeKindAlt = new ThreeOfAKindAltCategory(); int score = threeKindAlt.CalculateScoreForRoll(die.getCount()); Assert.IsTrue(score == 0); }
public void TestScoreThreeOfAKindAlt() { DieSet die = new DieSet(1, 6, 1, 4, 1); ScoringCategory threeKindAlt = new ThreeOfAKindAltCategory(); Assert.IsTrue(threeKindAlt.Name == "Three of a Kind"); Assert.IsTrue(threeKindAlt.HasBeenUsed == false); Assert.IsTrue(threeKindAlt.Lower); Assert.IsFalse(threeKindAlt.Upper); threeKindAlt.Score(die.getCount()); Assert.IsTrue(threeKindAlt.HasBeenUsed == true); Assert.IsTrue(threeKindAlt.FinalScore == 3); }
public void TestThreeOfAKindAltRules() { ScoringCategory threeKindAlt = new ThreeOfAKindAltCategory(); Assert.AreEqual("Three of a Kind: If there are three matching dice, score the total of those three dice. Otherwise, score 0.", threeKindAlt.getRules()); }