public void MotorradWithEmptyMarke2() { Assert.Catch(() => { var x = new Motorrad("", "ABC", 50000); }); }
public void MotorradWithEmptyModell2() { Assert.Catch(() => { var x = new Motorrad("BMW", "", 50000); }); }
public void CanCreateMotorrad() { var x = new Motorrad("BMW", "ABC", 50000); Assert.IsTrue(x.Marke == "BMW"); Assert.IsTrue(x.Modell == "ABC"); Assert.IsTrue(x.Preis == 50000); }