Beispiel #1
0
        public void ParkingSlotRemoveMcCarTest()
        {
            // Setup
            string registrationNumber  = "abc123";
            string parkingSlot         = "poi654";
            string expectedParkingSlot = null;

            // Act
            ParkingSlot.RemoveMc(ref parkingSlot, registrationNumber);

            // Verify
            Assert.AreEqual(expectedParkingSlot, parkingSlot);
        }
Beispiel #2
0
        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);
        }