diff --git a/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs b/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs index fedff3bc..04e8cce3 100644 --- a/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs +++ b/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs @@ -29,6 +29,7 @@ using SafeExamBrowser.Monitoring.Contracts.Applications; using SafeExamBrowser.Monitoring.Contracts.Display; using SafeExamBrowser.Monitoring.Contracts.System; using SafeExamBrowser.Settings; +using SafeExamBrowser.Settings.Monitoring; using SafeExamBrowser.UserInterface.Contracts; using SafeExamBrowser.UserInterface.Contracts.FileSystemDialog; using SafeExamBrowser.UserInterface.Contracts.MessageBox; @@ -412,7 +413,8 @@ namespace SafeExamBrowser.Client.UnitTests settings.Taskbar.EnableTaskbar = true; actionCenter.Setup(t => t.InitializeBounds()).Callback(() => boundsActionCenter = ++order); - displayMonitor.Setup(w => w.InitializePrimaryDisplay(It.Is(h => h == height))).Callback(() => workingArea = ++order); + displayMonitor.Setup(m => m.InitializePrimaryDisplay(It.Is(h => h == height))).Callback(() => workingArea = ++order); + displayMonitor.Setup(m => m.IsAllowedConfiguration(It.IsAny())).Returns(true); taskbar.Setup(t => t.GetAbsoluteHeight()).Returns(height); taskbar.Setup(t => t.InitializeBounds()).Callback(() => boundsTaskbar = ++order); @@ -443,6 +445,7 @@ namespace SafeExamBrowser.Client.UnitTests actionCenter.Setup(t => t.InitializeBounds()).Callback(() => boundsActionCenter = ++order); displayMonitor.Setup(w => w.InitializePrimaryDisplay(It.Is(h => h == 0))).Callback(() => workingArea = ++order); + displayMonitor.Setup(m => m.IsAllowedConfiguration(It.IsAny())).Returns(true); taskbar.Setup(t => t.GetAbsoluteHeight()).Returns(height); taskbar.Setup(t => t.InitializeBounds()).Callback(() => boundsTaskbar = ++order);