コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }