public void MustRevertCorrectlyForDisableExplorerShell() { var sut = new WindowMonitorOperation(KioskMode.DisableExplorerShell, loggerMock.Object, windowMonitorMock.Object); sut.Revert(); windowMonitorMock.Verify(w => w.StopMonitoringWindows(), Times.Once); }
public void MustRevertCorrectlyForCreateNewDesktop() { var sut = new WindowMonitorOperation(KioskMode.CreateNewDesktop, loggerMock.Object, windowMonitorMock.Object); sut.Revert(); windowMonitorMock.Verify(w => w.StopMonitoringWindows(), Times.Once); }
public void MustDoNothingWithoutKioskMode() { var sut = new WindowMonitorOperation(KioskMode.None, loggerMock.Object, windowMonitorMock.Object); sut.Perform(); sut.Revert(); windowMonitorMock.VerifyNoOtherCalls(); }