Пример #1
0
 void OnDestroy()
 {
     //Free all the resources
     if (parkedAt != null)
     {
         parkedAt.Vacate();
     }
     if (chargingAt != null)
     {
         chargingAt.Free();
     }
 }
        public void Vacate_ShouldBeTrue()
        {
            ParkingSpace sut = new ParkingSpace();

            sut.Vacate();
            Assert.That(sut.GetIsAvailable(), Is.EqualTo(true));
        }