public void CheckLivingHouse() { var livingHouse = new LivingHouse(0, 0); for (var i = 0; i < LivingHouse.LivingPlaces; i++) { Assert.AreEqual(true, livingHouse.HavePlace); livingHouse.AddLiver(i); } Assert.AreEqual(false, livingHouse.HavePlace); for (var i = 0; i < LivingHouse.LivingPlaces; i++) { Assert.AreEqual(i, livingHouse[i]); } livingHouse.DeleteLiver(2); Assert.AreEqual(-1, livingHouse[2]); livingHouse.AddLiver(5); Assert.AreEqual(5, livingHouse[2]); }
public void Show(LivingHouse house) { Open(); }