public async Task InvalidConnection() { using (SelfCleaningTempFile queryTempFile = new SelfCleaningTempFile()) using (TestServiceDriverProvider testService = new TestServiceDriverProvider()) { bool connected = await testService.Connect(queryTempFile.FilePath, InvalidConnectParams, 300000); Assert.False(connected, "Invalid connection is failed to connect"); await testService.Connect(queryTempFile.FilePath, InvalidConnectParams, 300000); Thread.Sleep(1000); await testService.CancelConnect(queryTempFile.FilePath); await testService.Disconnect(queryTempFile.FilePath); } }