public void GetDismissedWorkerPriceTest() { //Przygotowanie GameParams g = new GameParams(); Functions f = new Functions(); Round r1 = new Round() { DwarfWorkersDismissed = 1 }; Round r2 = new Round() { ElfWorkersDismissed = 1 }; Round r3 = new Round() { HumanWorkersDismissed = 1 }; double d1 = 0, d2 = 0, d3 = 0; //Działanie d1 = f.GetDismissedWorkerPrice(r1); d2 = f.GetDismissedWorkerPrice(r2); d3 = f.GetDismissedWorkerPrice(r3); //Sprawdzenie Assert.AreEqual(d1, g.DismissalPrice); Assert.AreEqual(d2, g.DismissalPrice); Assert.AreEqual(d3, g.DismissalPrice); }