コード例 #1
0
        public void MustRevertCorrectlyForDisableExplorerShell()
        {
            var sut = new WindowMonitorOperation(KioskMode.DisableExplorerShell, loggerMock.Object, windowMonitorMock.Object);

            sut.Revert();

            windowMonitorMock.Verify(w => w.StopMonitoringWindows(), Times.Once);
        }
コード例 #2
0
        public void MustRevertCorrectlyForCreateNewDesktop()
        {
            var sut = new WindowMonitorOperation(KioskMode.CreateNewDesktop, loggerMock.Object, windowMonitorMock.Object);

            sut.Revert();

            windowMonitorMock.Verify(w => w.StopMonitoringWindows(), Times.Once);
        }
コード例 #3
0
        public void MustDoNothingWithoutKioskMode()
        {
            var sut = new WindowMonitorOperation(KioskMode.None, loggerMock.Object, windowMonitorMock.Object);

            sut.Perform();
            sut.Revert();

            windowMonitorMock.VerifyNoOtherCalls();
        }