public void GetWorkersPriceTest() { //Przygotowanie GameParams g = new GameParams(); Functions f = new Functions(); Round r1 = new Round() { DwarfWorkers = 1 }; Round r2 = new Round() { ElfWorkers = 1 }; Round r3 = new Round() { HumanWorkers = 1 }; double d1 = 0, d2 = 0, d3 = 0; //Działanie d1 = f.GetWorkersPrice(r1); d2 = f.GetWorkersPrice(r2); d3 = f.GetWorkersPrice(r3); //Sprawdzenie Assert.AreEqual(d1, g.WorkerDwarfPrice * g.HoursPerPeriod); Assert.AreEqual(d2, g.WorkerElfPrice * g.HoursPerPeriod); Assert.AreEqual(d3, g.WorkerHumanPrice * g.HoursPerPeriod); }