Amazon.KinesisTap.EtwEvent.Test/MockTraceEvent.cs
/// <summary>
/// Verify that the data contained in the envelope is what we sent.
/// </summary>
/// <param name="envelope">What we received</param>
/// <returns>True if the data contained in the envelope matches what we sent.</returns>
Verify that the data contained in the envelope is what we sent.
Verify that the data contained in the envelope is what we sent .
public static bool ValidateData(EtwEventEnvelope envelope)
        {
            Amazon.KinesisTap.Windows.EtwEvent traceData = envelope.Data;
            return envelope.Data.ProcessID == MockProcessID
                && envelope.Data.ExecutingThreadID == MockEtwEventSource.MockThreadID
                && envelope.Data.MachineName.Equals(Amazon.KinesisTap.Windows.EtwEvent.GetFQDN())
                && traceData.FormattedMessage.Equals(MockFormattedMessage)
                && traceData.ProviderName.Equals(ClrProviderName)
                && ValidatePayload(traceData);
        }
public static bool ValidateData ( EtwEventEnvelope envelope ) { Amazon . KinesisTap . Windows . EtwEvent traceData = envelope . Data ; return envelope . Data . ProcessID == MockProcessID && envelope . Data . ExecutingThreadID == MockEtwEventSource . MockThreadID && envelope . Data . MachineName . Equals ( Amazon . KinesisTap . Windows . EtwEvent . GetFQDN ( ) ) && traceData . FormattedMessage . Equals ( MockFormattedMessage ) && traceData . ProviderName . Equals ( ClrProviderName ) && ValidatePayload ( traceData ) ; }
Verify that the data contained in the envelope is what we sent.
Verify that the data contained in the envelope is what we sent .
True if the data contained in the envelope matches what we sent.
True if the data contained in the envelope matches what we sent .
envelope
EtwEventEnvelope
None