public void CalculateLandTax_BuildingBuilt_ReturnsValidVariableTax() { World w = new World(50, 50); w.Build(new Coordinates(2, 5), b); Assert.AreEqual((decimal)25.5, b.CalculateLandTax(), "Invalid land tax returned"); var b2 = new ResidentialBuilding(COMPANY_NAME); w.Build(new Coordinates(2, 10), b2); Assert.AreEqual((decimal)31, b2.CalculateLandTax(), "Invalid land tax returned"); }
public void CalculateLandTax_BuildingNotBuiltInAnyWorld_ExceptionThrown() { b.CalculateLandTax(); }