public void MenuItemPriceExtremeMax() // 100 int FAIL { //create an instance of the class we want to create clsMenuItem AMenuItem = new clsMenuItem(); //string variable to store any error message String Error = ""; //create some test data to pass to the method Int32 TestPrice; TestPrice = 100; string MenuItemPrice = TestPrice.ToString(); //invoke the method Error = AMenuItem.Valid(MenuItem, MenuItemPrice); //test to see that the result is correct Assert.AreNotEqual(Error, ""); }
public void PriceMid() { //create an instance of the class we want to create clsStock AStock = new clsStock(); //string variable to store any error message String Error = ""; Decimal TestPrice; //set the date totodays date TestPrice = 5000000; //convert the date variable to a string variable string Price = TestPrice.ToString(); Error = AStock.Valid(CarModel, BHP, Price, DateAdded); //test to see that the result is correct Assert.AreEqual(Error, ""); }
public void ThirdChoiceMaxPlusOK() { // create an instance of the class we want to create clsOrder AnOrder = new clsOrder(); // string variable to store any error message String Error = ""; // create some test data to pass to the method Int32 TestPrice; TestPrice = 11; string ThirdPrice = TestPrice.ToString(); // invoke the method Error = AnOrder.Valid(FirstPrice, SecondPrice, ThirdPrice, OrderTotal); // test to see that the result is correct Assert.AreNotEqual(Error, ""); }
public void PriceMin() { //create an instance of the class we want to create clsCourses aCourse = new clsCourses(); //string variable to store any error message String Error = ""; //create a variable to store the test date data Decimal TestPrice; //set TestPrice to a value TestPrice = 00.00m; //convert the decimal variable to a string variable string Price = TestPrice.ToString(); //invoke the method Error = aCourse.Valid(Title, Category, Tutor, LiveDate, Price); //test to see that the result is correct Assert.AreEqual(Error, ""); }
public void PriceMinPlusOne() { //create an instance of the class we want to create clsStock AStock = new clsStock(); //string variable to store any error message String Error = ""; //create some test data to pass to the method double TestPrice; //set the date todays date TestPrice = 0.01; //change the date to whatever the date is less 100years //convert the date variable to a string varaible string Price = TestPrice.ToString(); //invoke the method Error = AStock.Valid(BookName, AuthorName, Price, PublishDate); //test to see that the result is correct Assert.AreEqual(Error, ""); }