Пример #1
0
        public void should_not_pick_up_car_when_repeat_pick_up()
        {
            Park park = new Park(1);
            Car car = new Car("JP123");
            SuperParkingBoy boy = new SuperParkingBoy(park);

            boy.StopCar(car);
            boy.PickUpCar(car.CarNumber);

            Assert.Same(null, boy.PickUpCar(car.CarNumber));
        }
Пример #2
0
        public void should_pick_up_car_from_park()
        {
            Park park = new Park(1);
            Car car = new Car("JP123");
            SuperParkingBoy boy = new SuperParkingBoy(park);

            boy.StopCar(car);

            Assert.Same(car, boy.PickUpCar(car.CarNumber));
        }