Esempio n. 1
0
        public void TerminateProcessDumpShouldCallTerminateOnProcDumpProcess()
        {
            var processDumpUtility = new ProcessDumpUtility(
                this.mockProcessHelper.Object,
                this.mockFileHelper.Object,
                this.mockPlatformEnvironment.Object,
                this.mockNativeMethodsHelper.Object);

            // Mock process helper
            this.mockProcessHelper.Setup(x => x.TerminateProcess(It.IsAny <object>()));

            // Raise
            processDumpUtility.TerminateProcess();

            // Verify
            this.mockProcessHelper.Verify(x => x.TerminateProcess(It.IsAny <object>()), Times.Once);
        }