public void StatusCheckTest() { Car[] cars = new Car[2] { new Car { Color = "white", RegistrationNumber = "KA-01-HH-1234", SlotNumber = 1 }, new Car { Color = "red", RegistrationNumber = "KA-01-HH-9876", SlotNumber = 2 } }; sampleLot = new Model.ParkingLot(4) { Cars = cars }; ICommands commands = new CommandRouter(); Program.ParkingLot = sampleLot; commands.status(); Program.ParkingLot = null; Assert.ThrowsException <BaseException>(() => commands.status()); }