public void ExitStatus_ReturnsExitStatusDisposedIfProcessHasBeenDisposed()
        {
            // Arrange
            using (NodeJSProcess testSubject = CreateNodeJSProcess())
            {
                // Act
                testSubject.Dispose();
                string result = testSubject.ExitStatus;

                // Assert
                Assert.Equal(NodeJSProcess.EXIT_STATUS_DISPOSED, result);
            }
        }
        public void ExitStatus_ReturnsExitStatusDisposedIfProcessHasBeenDisposed()
        {
            // Arrange
            Process dummyProcess = CreateNodeJSProcess();
            Mock <NodeJSProcess> mockTestSubject = _mockRepository.Create <NodeJSProcess>(dummyProcess);

            mockTestSubject.CallBase = true;
            using (NodeJSProcess testSubject = mockTestSubject.Object)
            {
                // Act
                testSubject.Dispose();
                string result = mockTestSubject.Object.ExitStatus;

                // Assert
                Assert.Equal(NodeJSProcess.EXIT_STATUS_DISPOSED, result);
            }
        }