Exemple #1
0
 protected virtual void OnMessage(TestMessageEventArgs e)
 {
     if (Message != null)
     {
         Message(this, e);
     }
 }
Exemple #2
0
        void CoreLog(string message, TestMessageSeverity sev)
        {
            var msg = new TestMessageEventArgs {
                Message  = message,
                Severity = sev
            };

            // We're either buffering messages or writing them out
            // immediately
            if (_buffer == null)
            {
                _evt.NotifyMessage(msg);
            }
            else
            {
                _buffer.Add(msg);
            }
        }
Exemple #3
0
 void ITestRunnerEventSink.NotifyMessage(TestMessageEventArgs e)
 {
     OnMessage(e);
 }
 protected override void OnMessage(TestMessageEventArgs e)
 {
     _bufferLog.Add(e);
 }
 private void events_Message(object sender, TestMessageEventArgs e)
 {
     OnMessage(e);
 }
 protected virtual void OnMessage(TestMessageEventArgs e)
 {
     DefaultMessage(e);
 }