public void TestFourOfAKindAlt_MultiUseCategory_ThrowsException() { DieSet dieSet = new DieSet(1, 1, 2, 3, 1); ScoringCategory fourKindAlt = new FourOfAKindAltCategory(); int score = fourKindAlt.Score(dieSet.getCount()); score = fourKindAlt.Score(dieSet.getCount()); }
public void TestScoreFourOfAKindAlt() { DieSet die = new DieSet(6, 6, 1, 6, 6); ScoringCategory fourKindAlt = new FourOfAKindAltCategory(); Assert.IsTrue(fourKindAlt.Name == "Four of a Kind"); Assert.IsTrue(fourKindAlt.HasBeenUsed == false); Assert.IsTrue(fourKindAlt.Lower); Assert.IsFalse(fourKindAlt.Upper); fourKindAlt.Score(die.getCount()); Assert.IsTrue(fourKindAlt.HasBeenUsed == true); Assert.IsTrue(fourKindAlt.FinalScore == 24); }