Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
                }
            }
        }