public void ModelOfBikeNotEmpty() { Assert.Catch(() => { var bike = new Bike("", "100", 3000, "Cross"); }); }
public void PriceOfBikeNotNegativ() { Assert.Catch(() => { var bike = new Bike("Honda", "90", -3000, "Race"); }); }
public void HPOfBikeNotEmpty() { Assert.Catch(() => { var bike = new Bike("Opel", "", 3000, "Leder"); }); }
public void PriceValueOfBikeCorrect() { var bike = new Bike("Opel", "120", 3000, "Leder"); bike.UpdatePrice(12000); Assert.IsTrue(bike.Price == 12000); }