public void Test_Invalid_Add_At_Prize_Level() { PrizeLevels pls = new PrizeLevels(); PrizeLevel pl1 = new PrizeLevel(); pls.addPrizeLevelAt(null, 0); pls.addPrizeLevelAt(pl1, 40); Assert.IsTrue(pls.getNumPrizeLevels() == 0); }
public void Test_Add_At_Prize_Level() { PrizeLevels pls = new PrizeLevels(); PrizeLevel pl1 = new PrizeLevel(); PrizeLevel pl2 = new PrizeLevel(); pls.addPrizeLevel(pl1); pls.addPrizeLevelAt(pl2, 0); Assert.IsTrue(pls.getLevelOfPrize(pl2) == 0); }