internal string VerifyPreconditions(ConditionsCollection prd, string callID) { this._callID = callID; string str = "PRE-CONDITIONS: "; string str2 = ""; str2 = prd.VerifyConditions(callID); if (str2.Length > 10) { str2 = str + str2; } return(str2); }
/// <summary> /// Tests a collection of pre-conditions and returns errors /// </summary> /// <param name="condCollection">Object containing a collection of conditions to test (see <see cref="ConditionsCollection">ConditionsCollection</see> documentation)</param> /// <param name="callID">An identifier of the test, to be inserted in the logged error, to trace the context in which the condition test was called (for example, to trace the name of model component that triggered the test)</param> /// <returns>A string containing the pre-condition tests errors. Returns an empty string if the pre-conditions are all satisfied.</returns> public string VerifyPreconditions(ConditionsCollection condCollection, string callID) { TestPreconditions preconditions = new TestPreconditions(); return(preconditions.VerifyPreconditions(condCollection, callID)); }