public void Dispose()
 {
     this.Message = null;
     this.Test = null;
 }
Example #2
0
        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);
            }
        }
Example #3
0
 protected void Test_TestSetup(ProtocolUnitTest sender, ProtocolUnitTestEventArgs args)
 {
     this.NetworkConsoleModel.Connection.ClientEvent += new Action<IClientEventArgs>(Connection_ClientEvent);
 }
Example #4
0
        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);
        }