Exemplo n.º 1
0
        public void Cleanup(Action afterServerDisposed = null)
        {
            loggerTest?.LogInformation("Starting test cleanup");
            server?.Dispose();
            loggerTest?.LogInformation("TestServer disposed");

            afterServerDisposed?.Invoke();
            SyncTest.Set();
            loggerTest?.LogInformation("Test cleanup finished");
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     Client.Dispose();
     _testServer.Dispose();
 }
Exemplo n.º 3
0
 public void AfterTest(ITest test)
 {
     try { testServer?.Dispose(); } catch { }
 }