Exemplo n.º 1
0
        public void ContainsVehicle1McFalseTest()
        {
            //Setup
            string parkingPlace;

            parkingPlace = ":gfd765";
            string registrationNumber = "ifd765";
            bool   expected           = false;
            bool   actual;

            //Act
            actual = ParkingSlot.ContainsVehicle(parkingPlace, registrationNumber);

            //Verify
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void ContainsVehicle2McTrueleftTest()
        {
            //Setup
            string parkingPlace;

            parkingPlace = "098iuy:gfd765";
            string registrationNumber = "098iuy";
            bool   expected           = true;
            bool   actual;

            //Act
            actual = ParkingSlot.ContainsVehicle(parkingPlace, registrationNumber);

            //Verify
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void ContainsVehicleCarTest()
        {
            //Setup
            string parkingPlace;

            parkingPlace = "gfd765,1999-01-02 13:34";
            string registrationNumber = "gfd765";
            bool   expected           = true;
            bool   actual;

            //Act
            actual = ParkingSlot.ContainsVehicle(parkingPlace, registrationNumber);

            //Verify
            Assert.AreEqual(expected, actual);
        }