Example #1
0
        public void GetCrystalConstCostTest()
        {
            //Przygotowanie
            GameParams g  = new GameParams();
            Functions  f  = new Functions();
            Round      r1 = new Round()
            {
                CrystalPurchased = 1
            };
            Round r2 = new Round()
            {
                CrystalPurchased = 0
            };
            double d1 = 0, d2 = 0;

            //DziaƂanie
            d1 = f.GetCrystalConstCost(r1);
            d2 = f.GetCrystalConstCost(r2);
            //Sprawdzenie
            Assert.AreEqual(d1, g.CrystalPriceConst);
            Assert.AreEqual(d2, 0);
        }