Example #1
0
 public void StopServerTest()
 {
     _server.Object.Start();
     Assert.True(_server.Object.IsRunning);
     _server.Object.Stop();
     Assert.False(_server.Object.IsRunning);
     _socketMock.VerifyDispose();
     _server.VerifyOnBeforeStop(Times.Once());
     _server.VerifyOnAfterStop(Times.Once());
     Assert.True(_server.BeforeStopCalled);
     Assert.True(_server.AfterStopCalled);
 }