public void FindMethodOk() { //create an instance of the class we wnat tot crate clsEmployee AnPayment = new clsEmployee(); // boolean variable to store the validation Boolean Found = false; // create some test datra to use with the mehtod Int32 PaymentNo = 1; // invoke the method Found = AnPayment.Find(PaymentNo); // test to see tyhay the result ius correct Assert.IsTrue(Found); }
//The following contains the methods public void FindMethodOK() { // CREATING THE INSTANCE OF THE CLASS clsEmployee AnEmployee = new clsEmployee(); // creating a boolean varbble to store the results of the validation Boolean Found = false; //craeting test data to test the method Int32 EmployeeNo = 1; // string EmployeeFirstName = "Nadim"; //invoking the method Found = AnEmployee.Find(EmployeeNo); Assert.IsTrue(Found); // !!!!!!! i have made it so that it always return true, this needs to be fizxed }
public void TestEmployeeEmailFound() { clsEmployee AnEmployee = new clsEmployee(); //boolean varible to store the results of the serach Boolean Found = false; //boolean varible to record if data is ok (assume it is???) Boolean OK = true; Int32 EmployeeNo = 1; //creating test data to test all of it out string EmployeeEmail = "*****@*****.**"; //invoke the method Found = AnEmployee.Find(EmployeeNo); //check emplye email if (AnEmployee.EmployeeEmail != "*****@*****.**") { OK = false; } Assert.IsTrue(OK); }
public void TestEmployeeSurNameFound() { clsEmployee AnEmployee = new clsEmployee(); //boolean varible to store the results of the serach Boolean Found = false; //boolean varible to record if data is ok (assume it is???) Boolean OK = true; Int32 EmployeeNo = 1; //creating test data to test all of it out //string EmployeeSurName = "Tokigawa"; //invoke the method Found = AnEmployee.Find(EmployeeNo); //check emplyeefirst name if (AnEmployee.EmployeeSurName != "Tokigawa") { OK = false; } Assert.IsTrue(OK); }
public void testemployeefirstnamefound() { clsEmployee anemployee = new clsEmployee(); //boolean varible to store the results of the serach Boolean found = false; //boolean varible to record if data is ok (assume it is???) Boolean ok = true; Int32 EmployeeNo = 1; //creating test data to test all of it out //string employeefirstname = "max"; //invoke the method found = anemployee.Find(EmployeeNo); //check emplyeefirst name if (anemployee.EmployeeFirstName != "Max") { ok = false; } Assert.IsTrue(ok); }
public void TestEmployeeNoFound() { clsEmployee anEmployee = new clsEmployee(); //boolean varible to store the results of theserach Boolean Found = false; //boolean varible to record if data is ok (assume it is???) Boolean OK = true; //craeting test data to test all thsi out Int32 EmployeeNo = 1; //invoking the method Found = anEmployee.Find(EmployeeNo); //check the employee no if (anEmployee.EmployeeNo != 1) { OK = false; } //tesst to see if the results are true Assert.IsTrue(OK); }