public void LogEvent(TeakLogEvent logEvent) { this.EvaluatePredicate(this.OnLogEvent, logEvent, (TestState state) => { // Only assign when it changes from Pending to not pending this.logEvent = this.logEvent == TestState.Pending ? state : this.logEvent; }); }
void OnLogEvent(Dictionary <string, object> logEvent) { TeakLogEvent teakLogEvent = new TeakLogEvent(logEvent); if (this.testEnumerator != null) { this.testEnumerator.Current.LogEvent(teakLogEvent); } if (teakLogEvent.LogLevel == TeakLogEvent.Level.ERROR) { Debug.LogError(teakLogEvent.ToString()); } if ("test.delegate".Equals(teakLogEvent.EventType)) { this.LaunchedFromDeepLinkPath = teakLogEvent.EventData["url"] as string; } }