Beispiel #1
0
        public void FindMethodOK()

        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //boolean variable to store the result of the validation
            Boolean Found = false;
            //create some test data to use with the method
            int BankID = 30;

            //invoke the method
            Found = ABankDetails.Find(BankID);
            //test to see that the result is correct
            Assert.IsTrue(Found);
        }
Beispiel #2
0
        public void FindSortCodeFound()

        {
            //create an instance of the class we want to create
            clsBankDetails ABankDetails = new clsBankDetails();
            //boolean variable to store the result of the validation
            Boolean Found = false;
            //boolean variable to record if data is OK
            Boolean OK = true;
            //create some test data to use with the method
            int BankID = 30;

            //invoke the method
            Found = ABankDetails.Find(BankID);
            //check the bankID
            if (ABankDetails.SortCode != 124365)
            {
                OK = false;
            }
            //test to see that the result is correct
            Assert.IsTrue(OK);
        }