From 8ba5c80d86a4b2f14546a543f437f92d155f9ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 1 Jun 2021 13:07:55 +0200 Subject: [PATCH] SEBWIN-491: Fixed unit tests. --- SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);