public void TestConstructorLogEntryEventArgs() { ILogEntry entry = new ApplicationLogEntry(MessageType.Warning, null, new object()); LogEntryEventArgs testLogEntryEventArgs = new LogEntryEventArgs(entry); Assert.IsNotNull(testLogEntryEventArgs, "Constructor of type, LogEntryEventArgs failed to create instance."); Assert.IsNotNull(testLogEntryEventArgs.LogEntry, "Constructor of type, LogEntryEventArgs failed to create instance."); Assert.IsTrue(entry.Equals(testLogEntryEventArgs.LogEntry), "Constructor of type, LogEntryEventArgs failed to create instance."); }
private void LogManager_LogEntryAppended(object o, LogEntryEventArgs e) { if (e.LogEntry.Type == MessageType.Information) { if (Handle != IntPtr.Zero) { Invoke(new MethodInvoker(delegate() { progressInfo.Text = e.LogEntry.Message; Update(); })); } } }
void _unitUnderTest_LogEntryAppended(object o, LogEntryEventArgs e) { Trace.WriteLine("LogManager.LogEntryAppendedEvent"); }
public void TearDown() { _unitUnderTest = null; }
public void SetUp() { _unitUnderTest = new LogEntryEventArgs(new ApplicationLogEntry(MessageType.Information, "Information", new object())); }