Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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)));
        }