public void should_park_to_any_parkingLot_for_same_size_empty_parkingLots() { var bmw = new Car(); var smartBoy = new SmartParkingBoy(new ParkingLot(1), new ParkingLot(1)); var bmwParkingInfo = smartBoy.Park(bmw); Assert.Same(bmw, smartBoy.Pick(bmwParkingInfo)); }
public void smartBoy_should_get_car_after_smartBoy_park() { var bmw = new Car(); var parkingLot = new ParkingLot(); var smartBoy = new SmartParkingBoy(parkingLot); var parkingInfo = smartBoy.Park(bmw); Assert.Same(bmw, smartBoy.Pick(parkingInfo)); }