public void TestThreeOfAKind_MultiUseCategory_ThrowsException() { DieSet dieSet = new DieSet(1, 1, 2, 3, 1); ScoringCategory threeKind = new ThreeOfAKindCategory(); int score = threeKind.Score(dieSet.getCount()); score = threeKind.Score(dieSet.getCount()); }
public void TestScoreThreeOfAKind() { DieSet die = new DieSet(1, 6, 1, 4, 1); ScoringCategory threeKind = new ThreeOfAKindCategory(); Assert.IsTrue(threeKind.Name == "Three of a Kind"); Assert.IsTrue(threeKind.HasBeenUsed == false); Assert.IsTrue(threeKind.Lower); Assert.IsFalse(threeKind.Upper); threeKind.Score(die.getCount()); Assert.IsTrue(threeKind.HasBeenUsed == true); Assert.IsTrue(threeKind.FinalScore == 13); }