public void InstanceOK() { //create an insnace of the class we want to create clsOrderLine AnOrderLine = new clsOrderLine(); //test to dsee if it exists Assert.IsNotNull(AnOrderLine); }
public void CompanyIDOK() { //create instance of class clsOrderLine AnOrderLine = new clsOrderLine(); //create LineCost variable double lineCost = 10.99; //assign lineCost to AnOrderLine.LineCost AnOrderLine.LineCost = lineCost; //see if both variables are the same Assert.AreEqual(AnOrderLine.LineCost, lineCost); }