Exemplo n.º 1
0
            public void WhenCalledAndActualProcessHasAlreadyExited_CallsDisposeButNotKill()
            {
                acadProcess.Start("IPC port name", Guid.Empty, null);
                actualProcess.Stub(x => x.HasExited).Return(true);

                acadProcess.Dispose();

                actualProcess.AssertWasNotCalled(x => x.Kill());
                actualProcess.AssertWasCalled(x => x.Dispose());
            }