Exemplo n.º 1
0
        public void Should_Return_False_Given_Parking_Lot_Not_Exist_When_Remove_ParkingLot()
        {
            //given
            var parkingLot = new ParkingLot();
            var parkingBoy = new SuperSmartParkingBoy(new List <ParkingLot>()
            {
            });

            //when
            var result = parkingBoy.RemoveParkingLot(parkingLot);

            //then
            Assert.False(result);
        }
Exemplo n.º 2
0
        public void Should_Remove_Parking_Lot_Given_Parking_Lot_Exist_When_Remove_ParkingLot()
        {
            //given
            var parkingLot = new ParkingLot();
            var parkingBoy = new SuperSmartParkingBoy(new List <ParkingLot>()
            {
                parkingLot
            });

            //when
            var result = parkingBoy.RemoveParkingLot(parkingLot);

            //then
            Assert.Equal(0, parkingBoy.ParkingLotsCount);
        }