Beispiel #1
0
        public void GetGeneralMaterialRateCostTest()
        {
            //Przygotowanie
            GameParams g  = new GameParams();
            Functions  f  = new Functions();
            Round      r1 = new Round()
            {
                WandsAmount = 1000, WoodPurchased = 2000, CrystalPurchased = 1000
            };
            double d1 = 0;

            //Działanie
            d1 = f.GetGeneralMaterialRateCost(r1);
            //Sprawdzenie
            Assert.AreEqual(d1, (f.GetWoodUse(r1) * f.GetAndSetAverageWoodPrice(r1) * f.GetCrystalUse(r1) * f.GetAndSetAverageCrystalPrice(r1)) * g.GeneralMaterialRateCosts);
        }