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, ""); }
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, ""); }
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, ""); }