public void EnclosureNonExistantMixins_ReturnsNull() { Enclosure enclosure = new Enclosure(); Assert.AreEqual(null, enclosure.ImprovementCost(enclosure._qualityCounter)); Assert.AreEqual(null, enclosure.MaintenanceCost(enclosure._quality, enclosure._sustain)); Assert.AreEqual(null, enclosure.MigrationCost(enclosure._quality)); }
public void EnclosureMaintenanceCost_Succeeds() { Enclosure enclosure = new Enclosure(null, new MaintenancePolitics()) { _qualityCounter = -45, _sustain = 10.50 }; Assert.AreEqual(null, enclosure.ImprovementCost(enclosure._qualityCounter)); Assert.AreEqual(10.5, enclosure.MaintenanceCost(enclosure._quality, enclosure._sustain)); Assert.AreEqual(null, enclosure.MigrationCost(enclosure._quality)); }