public void TestCompanyEmailAddressFound() { //create an instance of the class we want to create clsCompany ACompany = new clsCompany(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is OK (assume that it is) Boolean OK = true; //create some test data to use with the method Int32 CompanyCode = 21; //invoke the method Found = ACompany.Find(CompanyCode); //check the company code if (ACompany.CompanyEmailAddress != "*****@*****.**") { OK = false; } //test to see that the result is correct Assert.IsFalse(OK); }
public void TestPhoneNumberFound() { //create an instance of the class we want to create clsCompany ACompany = new clsCompany(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is OK (assume that it is) Boolean OK = true; //create some test data to use with the method Int32 CompanyCode = 21; //invoke the method Found = ACompany.Find(CompanyCode); //check the company code if (ACompany.PhoneNumber != "3345354") { OK = false; } //test to see that the result is correct Assert.IsFalse(OK); }
public void FindMethodOK() { //create an instance of the class we want to create clsCompany ACompany = new clsCompany(); //boolean variable to store the result of the validation Boolean Found = false; //create some test data to use with the method Int32 CompanyCode = 21; //invoke the method Found = ACompany.Find(CompanyCode); //test to see that the result is correct Assert.IsFalse(Found); }