public void IncreaseSpeedTest()
 {
     Avto avto = new Avto();
     int currentSpeed = avto.CurrentSpeed;
     avto.IncreaseSpeed();
     avto.CurrentSpeed.Should().BeGreaterThan(currentSpeed);
 }
 public void OverheatTest()
 {
     Avto avto = new Avto(1000,200,120,100);
     for (int i = 0; i < 9; i++)
     {
         try
         {
             avto.IncreaseSpeed();
         }
         catch (Exception)
         {
         }
     }
     avto.Engine.IsBroken.Should().Be(true);
 }