public void should_able_to_park_a_car_after_pick_a_car() { var fullParkingLot = new ParkingLot(1); fullParkingLot.Pick(fullParkingLot.Park(new Car())); Assert.NotNull(fullParkingLot.Park(new Car())); }
public void should_park_car_correctly() { var car = new Car(); var parkingLot = new ParkingLot(); smartParkingBoy.Manage(parkingLot); var token = smartParkingBoy.Park(car); Assert.Same(car, parkingLot.Pick(token)); }
public void should_able_to_park_a_car_after_pick_a_car() { var fullParkingLot = new ParkingLot(1); fullParkingLot.Pick(fullParkingLot.Park(new Car())); Assert.NotNull(fullParkingLot.Park(new Car())); }
public void should_park_cars_to_most_empty_parkinglot() { var car = new Car(); var parkingLot = new ParkingLot(3); var moreEmptyParkingLot = new ParkingLot(4); smartParkingBoy.Manage(parkingLot, moreEmptyParkingLot); var token = smartParkingBoy.Park(car); Assert.Same(car, moreEmptyParkingLot.Pick(token)); }
public void should_park_cars_sequencely() { var car = new Car(); var fullParkingLot = new ParkingLot(0); var parkingLot = new ParkingLot(); parkingBoy.Manage(fullParkingLot, parkingLot); var token = parkingBoy.Park(car); Assert.Same(car, parkingLot.Pick(token)); }
public void should_park_car_correctly() { var car = new Car(); var parkingLot = new ParkingLot(); parkingManager.Manage(parkingLot); var token = parkingManager.Park(car); Assert.Same(car, parkingLot.Pick(token)); }
public void should_park_cars_to_max_empty_rate_parkinglot() { var car = new Car(); var parkingLot = new ParkingLot(5); var moreEmptyRateParkingLot = new ParkingLot(3); parkingLot.Park(new Car()); superParkingBoy.Manage(parkingLot, moreEmptyRateParkingLot); var token = superParkingBoy.Park(car); Assert.Same(car, moreEmptyRateParkingLot.Pick(token)); }
public void should_park_cars_to_most_empty_parkinglot() { var car = new Car(); var parkingLot = new ParkingLot(3); var moreEmptyParkingLot = new ParkingLot(4); smartParkingBoy.Manage(parkingLot, moreEmptyParkingLot); var token = smartParkingBoy.Park(car); Assert.Same(car, moreEmptyParkingLot.Pick(token)); }
public void should_park_cars_sequencely() { var car = new Car(); var fullParkingLot = new ParkingLot(0); var parkingLot = new ParkingLot(); parkingBoy.Manage(fullParkingLot, parkingLot); var token = parkingBoy.Park(car); Assert.Same(car, parkingLot.Pick(token)); }
public void should_park_cars_to_max_empty_rate_parkinglot() { var car = new Car(); var parkingLot = new ParkingLot(5); var moreEmptyRateParkingLot = new ParkingLot(3); parkingLot.Park(new Car()); superParkingBoy.Manage(parkingLot, moreEmptyRateParkingLot); var token = superParkingBoy.Park(car); Assert.Same(car, moreEmptyRateParkingLot.Pick(token)); }
public void should_pick_car_after_park_car_as_a_parking_lot() { var car = new Car(); var token = parkingLot.Park(car); Assert.Same(car, parkingLot.Pick(token)); }