public void RuntimeTest()
        {
            using (ILogBus target = CreateILogBus())
            {
                inject_finish   = new AutoResetEvent(false);
                injector_thread = new Thread(Injector);
                injector_thread.IsBackground = true;


                target.Started         += new System.EventHandler(target_Started);
                target.Stopped         += new System.EventHandler(target_Stopped);
                target.MessageReceived += new EventHandler <SyslogMessageEventArgs>(target_MessageReceived);

                TestContext.WriteLine("Starting Logbus instance");
                target.Start();
                injector_thread.Start();

                TestContext.WriteLine("Waiting for test completion");
                inject_finish.WaitOne();
                target.Stop();
                injector_thread.Join();

                TestContext.WriteLine("Test finished");

                Assert.AreEqual(messages_to_match, messages_matched);
            }
        }
        public void StopTest()
        {
            ILogBus target = CreateILogBus();

            target.Stop();
            Assert.Inconclusive("Impossibile verificare un metodo che non restituisce valori.");
        }
 /// <summary>
 /// Required by IRunnable
 /// </summary>
 public void Stop()
 {
     _target.Stop();
 }