public void InstanceOK() { //create an instance of the class we want to create CLSCustomer AnCustomer = new CLSCustomer(); //test to see that it exits Assert.IsNotNull(AnCustomer); }
public void customerID() { //create an instance of the class we want to create CLSCustomer AnCustomer = new CLSCustomer(); Int32 TestData = 1; //assign the data to the table AnCustomer.customerID = TestData; //test to see that the two values are the same Assert.AreEqual(AnCustomer.customerID, TestData); }
public void DateAdded() { //create an instance of the class we want to create CLSCustomer AnCustomer = new CLSCustomer(); //create some test data to assign to the table DateTime TestData = DateTime.Now.Date; //assign the data to the table AnCustomer.DateAdded = TestData; //test to see that the two values are the same Assert.AreEqual(AnCustomer.DateAdded, TestData); }
public void customerActive() { //create an instance of the class we want to create CLSCustomer AnCustomer = new CLSCustomer(); //create some test data to assign to the table Boolean TestData = true; //assign the data to the table AnCustomer.customerActive = TestData; //test to see that the two values are the same Assert.AreEqual(AnCustomer.customerActive, TestData); }
public void customerlastName() { //create an instance of the class we want to create CLSCustomer AnCustomer = new CLSCustomer(); //create some test data to assign to the table string TestData = "Choudhury"; //assign the data to the table AnCustomer.customerlastName = TestData; //test to see that the two values are the same Assert.AreEqual(AnCustomer.customerlastName, TestData); }