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 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); }