public void CannotCreateBungalowWithNegativePrice() { Assert.Catch(() => { var x = new Bungalow("Gelb", -1); }); }
public void CannotCreateHotelzimmerWithEmptyName2() { Assert.Catch(() => { var x = new Bungalow("", 888); }); }
public void CanCreateBungalow() { var x = new Bungalow("Gelb", 920); Assert.IsTrue(x.Name == "Gelb"); Assert.IsTrue(x.Preis == 920); }
public void CannotCreateBungalowWithEmptyName1() { Assert.Catch(() => { var x = new Bungalow(null, 700); }); }
public void CanCalculateBungalow() { var x = new Bungalow("Gelb", 1000); x.stornieren(x.Preis); Assert.IsTrue(x.Preis == 150); }