public void Should_Not_Release_ParkingSpace_And_Return_Unavailable() { var parkingSpace = new ParkingSpace(ParkingSpaceType.Car); parkingSpace.Occupy(2); Assert.False(parkingSpace.IsAvailable()); }
public void Should_Occupy_ParkingSpace_And_Then_Be_Not_Available() { var parkingSpace = new ParkingSpace(ParkingSpaceType.Car); parkingSpace.Occupy(2); Assert.False(parkingSpace.IsAvailable()); }
public void Should_Release_ParkingSpace_And_Then_Be_Available() { var parkingSpace = new ParkingSpace(ParkingSpaceType.Car); parkingSpace.Occupy(2); parkingSpace.Release(); Assert.True(parkingSpace.IsAvailable()); }
public void Should_Not_Occupy_ParkingSpace_And_Return_Available() { var parkingSpace = new ParkingSpace(ParkingSpaceType.Car); Assert.True(parkingSpace.IsAvailable()); }