Example #1
0
        public void ValidMethodOK()
        {
            //crerate an instance of the class we want to create
            clsMenu AMenu = new clsMenu();
            //string for error
            String Error = "";

            //invoke method
            Error = AMenu.Valid(Name, Description, RecipeID, Price);
            //test results
            Assert.AreEqual(Error, "");
        }
Example #2
0
        public void PriceMinLessOne()
        {
            //crerate an instance of the class we want to create
            clsMenu AMenu = new clsMenu();
            //string for error
            String Error = "";
            //test data
            Double Price = -1;

            //invoke method
            Error = AMenu.Valid(Name, Description, RecipeID, Price);
            //test results
            Assert.AreNotEqual(Error, "");
        }
Example #3
0
        public void DescriptionMaxPlusOne()
        {
            //crerate an instance of the class we want to create
            clsMenu AMenu = new clsMenu();
            //string for error
            String Error = "";
            //test data
            string Description = "01234567890123456789012345678901234567890";

            //invoke method
            Error = AMenu.Valid(Name, Description, RecipeID, Price);
            //test results
            Assert.AreNotEqual(Error, "");
        }