public void TestFullHouse_MultiUseCategory_ThrowsException() { DieSet dieSet = new DieSet(1, 1, 2, 3, 1); ScoringCategory fullHouse = new FullHouseCategory(); int score = fullHouse.Score(dieSet.getCount()); score = fullHouse.Score(dieSet.getCount()); }
public void TestScoreFullHouse() { DieSet die = new DieSet(6, 6, 6, 5, 5); ScoringCategory fullHouse = new FullHouseCategory(); Assert.IsTrue(fullHouse.Name == "Full House"); Assert.IsTrue(fullHouse.HasBeenUsed == false); Assert.IsTrue(fullHouse.Lower); Assert.IsFalse(fullHouse.Upper); fullHouse.Score(die.getCount()); Assert.IsTrue(fullHouse.HasBeenUsed == true); Assert.IsTrue(fullHouse.FinalScore == 25); }