private static void HostRequirementLogger(object sender, RequirementCaptureEventArgs e) { if (e == null) { throw new ArgumentNullException("RequirementCaptureEventArgs"); } string reqId = string.Format(CultureInfo.InvariantCulture, MessageRuntime.ReqId, e.ProtocolName, e.RequirementId); RuntimeAppLog.TraceLog( string.Format(CultureInfo.InvariantCulture, MessageRuntime.ReqCaptureFormat, reqId, e.RequirementDescription)); }
private static void HostMessageLogger(object sender, MessageLogEventArgs e) { if (e == null) { throw new ArgumentNullException("MessageLogEventArgs"); } string message = e.Parameters == null ? e.Message : string.Format(CultureInfo.InvariantCulture, e.Message, e.Parameters); RuntimeAppLog.TraceLog( string.Format(CultureInfo.InvariantCulture, MessageRuntime.MessageLogFormat, e.LogEntryKind, message)); }
private static void HostAssertChecker(object sender, MessageLogEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } string message = e.Parameters == null ? e.Message : string.Format(CultureInfo.InvariantCulture, e.Message, e.Parameters); if (e.Condition) { RuntimeAppLog.TraceLog( string.Format(CultureInfo.InvariantCulture, MessageRuntime.AssertCheckSucceed, message)); } else { RuntimeAppLog.TraceLog( string.Format(CultureInfo.InvariantCulture, MessageRuntime.AssertCheckFail, message)); } }