예제 #1
0
        public async Task TearDown()
        {
            Trace.WriteLine("---");
            Trace.WriteLine("Stopping client and server...");

            if (_server != null)
            {
                await _server.DisposeAsync();
            }
            if (_client != null)
            {
                await _client.DisposeAsync();
            }

            Trace.WriteLine("Client and server stopped");
            Trace.WriteLine($"Test took {DateTime.Now - _startTime}");
            Trace.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~");
        }