Example #1
0
        public void FindSearchStringNoMatchingTwoMcTest()
        {
            // Setup
            string slot = "tre4321:abc123";

            string[] expected = null;

            string[] actual;

            //Act
            actual = ParkingSlot.SearchVehicle(slot, "zaa");

            //Verify
            MyAssert.AreEqual(expected, actual);
        }
Example #2
0
        public void FindSearchStringOneMatchingCarTest()
        {
            // Setup
            string slot = "abc123,1999-01-02 13:34";

            string[] expected = new string[1];
            expected[0] = "abc123,1999-01-02 13:34";

            string[] actual;

            //Act
            actual = ParkingSlot.SearchVehicle(slot, "b");

            //Verify
            MyAssert.AreEqual(expected, actual);
        }
Example #3
0
        public void FindSearchStringOneMatchingMcTest()
        {
            // Setup
            string slot = "abc123:lka987";

            string[] expected = new string[1];
            expected[0] = ":lka987";

            string[] actual;

            //Act
            actual = ParkingSlot.SearchVehicle(slot, "k");

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