/// <summary> /// Apply the failed expectation /// </summary> /// <param name="localScope">The values of local variables</param> public override void Apply() { base.Apply(); Expect.State = Events.Expect.EventState.TimeOut; TimeLine.ActiveExpectations.Remove(Expect); ElementLog = Expect.Expectation.AddError(Message); }
/// <summary> /// Adds a new element log attached to this model element /// </summary> /// <param name="log"></param> protected override void AddElementLog(Utils.ElementLog log) { Parameter enclosingParameter = Utils.EnclosingFinder <Parameter> .find(this); if (enclosingParameter != null) { log.Log = "In " + FullName + ":" + log.Log; enclosingParameter.AddElementLog(log); } else { base.AddElementLog(log); } }