Пример #1
0
        public void ShouldBeSilentAfterStopWhenStopped()
        {
            var listener = new TcpListener(9994);

            listener.Stop();
            Assert.AreEqual(ListenerStatus.Stopped, listener.Status);
        }
Пример #2
0
 public void ShouldBeStoppedAfterStop()
 {
     var listener = new TcpListener(9993);
     listener.Start();
     listener.Stop();
     Assert.AreEqual(ListenerStatus.Stopped, listener.Status);
 }
Пример #3
0
        public void ShouldBeStoppedAfterStop()
        {
            var listener = new TcpListener(9993);

            listener.Start();
            listener.Stop();
            Assert.AreEqual(ListenerStatus.Stopped, listener.Status);
        }
Пример #4
0
 public void ShouldAllowRestart()
 {
     var listener = new TcpListener(9995);
     listener.Start();
     listener.Stop();
     listener.Start();
     Assert.AreEqual(ListenerStatus.Listening, listener.Status);
 }
Пример #5
0
        public void ShouldAllowRestart()
        {
            var listener = new TcpListener(9995);

            listener.Start();
            listener.Stop();
            listener.Start();
            Assert.AreEqual(ListenerStatus.Listening, listener.Status);
        }
Пример #6
0
 public void ShouldBeSilentAfterStopWhenStopped()
 {
     var listener = new TcpListener(9994);
     listener.Stop();
     Assert.AreEqual(ListenerStatus.Stopped, listener.Status);
 }