Пример #1
0
 public void ModelOfBikeNotEmpty()
 {
     Assert.Catch(() =>
     {
         var bike = new Bike("", "100", 3000, "Cross");
     });
 }
Пример #2
0
 public void PriceOfBikeNotNegativ()
 {
     Assert.Catch(() =>
     {
         var bike = new Bike("Honda", "90", -3000, "Race");
     });
 }
Пример #3
0
 public void HPOfBikeNotEmpty()
 {
     Assert.Catch(() =>
     {
         var bike = new Bike("Opel", "", 3000, "Leder");
     });
 }
Пример #4
0
 public void PriceValueOfBikeCorrect()
 {
     var bike = new Bike("Opel", "120", 3000, "Leder");
     bike.UpdatePrice(12000);
     Assert.IsTrue(bike.Price == 12000);
 }