public void TestActiveFound() { //create an instance of the class we want to create clsOrder AnOrder = new clsOrder(); //boolean variable to store the result of the search Boolean Found = false; //boolean variable to record if data is OK (assume it is) Boolean OK = true; //create some test data to use with the method Int32 Order_ID = 21; //invoke the method Found = AnOrder.Find(Order_ID); //check the property if (AnOrder.Active != true) { OK = false; } //test to see that the result is correct Assert.IsTrue(OK); }
public void InstanceOK() { clsOrder AnOrder = new clsOrder(); Assert.IsNotNull(AnOrder); }