Ejemplo n.º 1
0
 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);
  }
Ejemplo n.º 2
0
 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);
 }