예제 #1
0
        //[TestMethod()] --> Can not test this, because there is no proper way to inject Mock-Session-Object
        public void ShutdownMachineTest()
        {
            ComMachineProxy machineProxy = new ComMachineProxy(_mockedComMachine.Object);

            machineProxy.Shutdown(ShutdownType.ACPI);

            _mockedComMachine.Verify(x => x.LockMachine(It.IsAny <Session>(), It.IsAny <LockType>()));
        }
        //[TestMethod()] --> Can not test this, because there is no proper way to inject Mock-Session-Object
        public void ShutdownMachineTest() {
            ComMachineProxy machineProxy = new ComMachineProxy(_mockedComMachine.Object);
            
            machineProxy.Shutdown(ShutdownType.ACPI);

            _mockedComMachine.Verify(x => x.LockMachine(It.IsAny<Session>(), It.IsAny<LockType>()));
        }