public override bool Equals(object obj) { if (obj as DivisionModel != null) { bool samePrizeLevel = PrizeLevel.Equals((obj as DivisionModel).PrizeLevel); bool sameMultiplier = Multiplier == (obj as DivisionModel).Multiplier; return(samePrizeLevel && sameMultiplier); } return(false); }
public void Test_Add_Get_Prize_Level() { PrizeLevels pls = new PrizeLevels(); PrizeLevel pl1 = new PrizeLevel(); pls.addPrizeLevel(pl1); Assert.IsTrue(pl1.Equals(pls.getPrizeLevel(0))); }