public async Task StartAsync_ValidListenerIpAndPort_Successful() { using var simpleTcpServer = new SimpleTcpServer("127.0.0.1", 8000); await simpleTcpServer.StartAsync(); Assert.IsTrue(simpleTcpServer.IsListening); }
public override async Task <bool> OpenAsync() { await _server.StartAsync().ConfigureAwait(false); return(await Task.FromResult(true).ConfigureAwait(false)); }