예제 #1
0
        public void SupplierNameExtremeMax()
        {

            //create an instance of the class
            clsStockItem AStockItem = new clsStockItem();
            //create a variable to record the result of the validation test
            Boolean OK;
            //create a variable to store the test data
            string SomeText = "";
            //pad the data to the required number of characters
            SomeText = SomeText.PadLeft(1000);
            //test the valid method with a two character string
            OK = AStockItem.SupplierNameValid(SomeText);
            //assert that the outcome should be true
            Assert.IsFalse(OK);
        }
예제 #2
0
 //used to test the presence of the valid method
 public void SupplierNameValidOK()
 {
     //create and instance of the class
     clsStockItem AStockItem = new clsStockItem();
     Boolean OK;
     //test to see if the valid method exists
     OK = AStockItem.SupplierNameValid("12111");
     Assert.IsTrue(OK);
 }