public async Task InteropTestCase(string name) { await _fixture.EnsureStarted(_output).TimeoutAfter(DefaultTimeout); using (var clientProcess = new ClientProcess(_output, _clientPath, _fixture.ServerPort, name)) { await clientProcess.WaitForReady().TimeoutAfter(DefaultTimeout); await clientProcess.Exited.TimeoutAfter(DefaultTimeout); Assert.Equal(0, clientProcess.ExitCode); } }
private async Task InteropTestCase(string name) { using (var serverProcess = new WebsiteProcess(_serverPath, _output)) { await serverProcess.WaitForReady().TimeoutAfter(DefaultTimeout); using (var clientProcess = new ClientProcess(_output, _clientPath, serverProcess.ServerPort, name)) { await clientProcess.WaitForReady().TimeoutAfter(DefaultTimeout); await clientProcess.Exited.TimeoutAfter(DefaultTimeout); Assert.Equal(0, clientProcess.ExitCode); } } }