public void Dispose() { this.Message = null; this.Test = null; }
protected void Test_TestEvent(ProtocolUnitTest sender, ProtocolUnitTestEventArgs e) { if (this.InvokeRequired == true) { this.Invoke(new Action<ProtocolUnitTest, ProtocolUnitTestEventArgs>(this.Test_TestEvent), sender, e); return; } if (String.IsNullOrEmpty(e.Message) == false) { this.ConsoleAppendLine("{0}", e.Message); } }
protected void Test_TestSetup(ProtocolUnitTest sender, ProtocolUnitTestEventArgs args) { this.NetworkConsoleModel.Connection.ClientEvent += new Action<IClientEventArgs>(Connection_ClientEvent); }
protected void OutputTestResult(ProtocolUnitTest test) { this.ConsoleAppendLine("TIME ELAPSED: {0}", test.End - test.Start); test.TestEvent -= new ProtocolUnitTest.TestEventHandler(Test_TestEvent); test.TestSetup -= new ProtocolUnitTest.TestEventHandler(Test_TestSetup); this.NetworkConsoleModel.Connection.ClientEvent -= new Action<IClientEventArgs>(Connection_ClientEvent); }