public void FindMethodOK() { //create an instance of the class clsTariff ATariff = new clsTariff(); Boolean Found = false; Int32 TariffID = 1; Found = ATariff.Find(TariffID); Assert.IsTrue(Found); }
public void TestTariffNotFound() { //create an instance of the class clsTariff ATariff = new clsTariff(); Boolean Found = false; Boolean OK = true; Int32 TariffID = 21; Found = ATariff.Find(TariffID); if (ATariff.TariffID != 21) { OK = false; } Assert.IsTrue(OK); }