public void FoodPaymentInstanceOK() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //test to see if the data works Assert.IsNotNull(AFoodPayment); }
public void FoodOrderingPropertyOK() { //create an instance of the class we want to create clsFoodPayment AFoodOrdering = new clsFoodPayment(); //create some test data to assign to the property string SomeFoodOrdering = "1"; AFoodOrdering.FoodOrdering = SomeFoodOrdering; //test to see if the two values are the same Assert.AreEqual(AFoodOrdering.FoodOrdering, SomeFoodOrdering); }
public void FoodPaymentExpiryDatePropertyOK() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //create some test data to assign to the property string SomeFoodPayment = "MR V R THOMAS"; AFoodPayment.ExpiryDate = SomeFoodPayment; //test to see if the two values are the same Assert.AreEqual(AFoodPayment.ExpiryDate, SomeFoodPayment); }
public void FoodPaymentAccountNumberPropertyOK() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //create some test data to assign to the property string SomeFoodPayment = ""; AFoodPayment.AccountNumber = SomeFoodPayment; //test to see if the two values are the same Assert.AreEqual(AFoodPayment.AccountNumber, SomeFoodPayment); }
public void FoodPaymentCardVerificationCodePropertyOK() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //create some test data to assign to the property string SomeFoodPayment = "565"; AFoodPayment.CardVerificationCode = SomeFoodPayment; //test to see if the two values are the same Assert.AreEqual(AFoodPayment.CardVerificationCode, SomeFoodPayment); }
public void FoodPaymentIDPropertyOK() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //create some test data to assign to the property Int32 TestData = 21; //assign the data to the property AFoodPayment.PaymentID = TestData; //test to see the two values are the same Assert.AreEqual(AFoodPayment.PaymentID, TestData); }
public void FoodPaymentMaxPlusOne() { //create an instance of the class we want to create clsFoodPayment AFoodPayment = new clsFoodPayment(); //boolean variable to store the result of the validation Boolean OK = false; //create some test data to asisgn to the property string SomeFoodPayment = "abcdefghijabcdefghijabcdefghijabcdefghij"; //invoke the method OK = AFoodPayment.Valid(SomeFoodPayment); //test to see that the result is correct Assert.IsTrue(OK); }