public void checkGetsAndSetFunctions() { Residential resid = new Residential("Te Papa", 150, 6, 50, 50, "cyan"); resid.setMortgaged(true); Assert.True(resid.getMortgaged()); Board.access().addProperty(resid); Assert.That(resid.getOwner(), Is.StringMatching("Banker")); Assert.That(resid.getName(), Is.StringMatching("Ohakune Carrot")); Assert.That(resid.getGroupColours(), Is.StringMatching("Brown")); Assert.AreEqual(100, resid.getPrice()); Assert.AreEqual(50, resid.getHouseCost()); Assert.AreEqual(50, resid.getHotelCost()); }