public async Task NetClientConnectWithValidConfigurationTest() { _socketMock.ConfigureConnectResult(false); // instance connection Assert.False(_client.Object.IsConnected); _client.Object.Connect(); await Task.Delay(1000).ConfigureAwait(false); // Fake connection Assert.True(_client.Object.IsConnected); }