public void ParkingSlotRemoveMcCarTest() { // Setup string registrationNumber = "abc123"; string parkingSlot = "poi654"; string expectedParkingSlot = null; // Act ParkingSlot.RemoveMc(ref parkingSlot, registrationNumber); // Verify Assert.AreEqual(expectedParkingSlot, parkingSlot); }
public void ParkingSlotRemoveMcRightTest() { // Setup string registrationNumber = "abc123"; string parkingSlot = "lkj987:abc123"; string expectedParkingSlot = ":lkj987"; // Act ParkingSlot.RemoveMc(ref parkingSlot, registrationNumber); // Verify Assert.AreEqual(expectedParkingSlot, parkingSlot); }