/// <summary>Tests the message by passing it to all test apps that have been registered /// using addTest(). /// </summary> /// <returns> exceptions that describe any identified problems with the message /// </returns> public override NuGenHL7Exception[] test(Message in_Renamed) { System.Collections.ArrayList problems = new System.Collections.ArrayList(40); for (int i = 0; i < tests.Count; i++) { NuGenTestApplication app = (NuGenTestApplication)tests[i]; NuGenHL7Exception[] shortList = app.test(in_Renamed); for (int j = 0; j < shortList.Length; j++) { problems.Add(shortList[i]); } } NuGenHL7Exception[] retVal = new NuGenHL7Exception[problems.Count]; problems.CopyTo(retVal); return(retVal); }
/// <summary> Registers a test app so that messages will be tested against it.</summary> public virtual void addTest(NuGenTestApplication test) { tests.Add(test); }