public void MaterialsInheritanceTest() { var m = new Materials(); m.r.IsBought = true; double SetDone = m.SetTotalPower(); Assert.That(SetDone, Is.Not.EqualTo(11300)); m.c.IsBought = true; SetDone = m.SetTotalPower(); Assert.That(SetDone, Is.Not.EqualTo(1300)); }
public void IsPowerAdded() { var m = new Materials(); m.w.IsBought = true; double SetDone = m.SetTotalPower(); Assert.That(SetDone, Is.EqualTo(300)); m.c.IsBought = true; SetDone = m.SetTotalPower(); Assert.That(SetDone, Is.EqualTo(1300)); m.r.IsBought = true; SetDone = m.SetTotalPower(); Assert.That(SetDone, Is.EqualTo(11300)); }