Exemple #1
0
        public BasicTest()
        {
            are               = new AutoResetEvent(false);
            receivedMessage   = null;
            disconnected      = false;
            server            = new BasicServer(12322);
            server.OnStarted += new EventHandler(OnStarted);
            server.Start();
            bool result = are.WaitOne(5000);

            if (!result)
            {
                throw new TimeoutException("Couldn't start test listener server");
            }
        }
Exemple #2
0
 public void Dispose()
 {
     server.Dispose();
     server = null;
     Thread.Sleep(1000);
 }