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