Ejemplo n.º 1
0
        public void TestStaffPhoneNumberFound()
        {
            // create an instance of a class we want to create
            clsCarStaff Astaff = new clsCarStaff();
            // boolean variable
            Boolean Found = false;
            // boolean variable
            Boolean OK = true;
            // create test data to pass through
            Int32 StaffNo = 1;

            // execute the method
            Found = Astaff.Find(StaffNo);
            // check the car park id
            if (Astaff.StaffPhoneNumber != "01456612014")
            {
                OK = false;
            }
            // test to see that the result is correct
            Assert.IsTrue(OK);
        }