public void InstanceOk() { //create an instance of the class clsTicket clsBookingnkk ABooking = new clsBookingnkk(); //check to see that the class is not null Assert.IsNotNull(ABooking); }
public void BookingDatePropertyOK() { //create an instance of the class we want to create clsBookingnkk ABooking = new clsBookingnkk(); //create some test data to assign to the property Int32 BookingDate = 03 / 04 / 2018; //assign the data to the property ABooking.BookingDate = BookingDate; //test to see that the two value are the same Assert.AreEqual(ABooking.BookingDate, BookingDate); }