Ejemplo n.º 1
0
            public void DefaultTimeoutIsInfinite()
            {
                HostClient.WaitForProcessExit(null).ReturnsForAnyArgs(new WaitForProcessExitResult());
                Process.WaitForExit();

                HostClient.Received(1).WaitForProcessExit(
                    Arg.Is <WaitForProcessExitParams>(actual =>
                                                      actual.key == ProcessKey && actual.timeout == Timeout.Infinite
                                                      )
                    );
            }
Ejemplo n.º 2
0
            public void ForwardsToHostClient()
            {
                HostClient.WaitForProcessExit(null).ReturnsForAnyArgs(new WaitForProcessExitResult());
                Process.WaitForExit(100);

                HostClient.Received(1).WaitForProcessExit(
                    Arg.Is <WaitForProcessExitParams>(actual =>
                                                      actual.key == ProcessKey && actual.timeout == 100
                                                      )
                    );
            }