From c498ef9af1252cf1abfd1a15d1afdace4be917cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 25 Jul 2023 15:11:55 +0200 Subject: [PATCH] SEBWIN-716, #323: Fixed unit test failing due to runtime window change. --- SafeExamBrowser.Runtime.UnitTests/RuntimeControllerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Runtime.UnitTests/RuntimeControllerTests.cs b/SafeExamBrowser.Runtime.UnitTests/RuntimeControllerTests.cs index 2fc15acb..955ee48a 100644 --- a/SafeExamBrowser.Runtime.UnitTests/RuntimeControllerTests.cs +++ b/SafeExamBrowser.Runtime.UnitTests/RuntimeControllerTests.cs @@ -475,7 +475,7 @@ namespace SafeExamBrowser.Runtime.UnitTests sessionSequence.Raise(o => o.ProgressChanged += null, args); runtimeWindow.Verify(s => s.SetValue(It.Is(i => i == args.CurrentValue)), Times.Once); - runtimeWindow.Verify(s => s.SetIndeterminate(), Times.Once); + runtimeWindow.Verify(s => s.SetIndeterminate(), Times.Exactly(2)); runtimeWindow.Verify(s => s.SetMaxValue(It.Is(i => i == args.MaxValue)), Times.Once); runtimeWindow.Verify(s => s.Progress(), Times.Once); runtimeWindow.Verify(s => s.Regress(), Times.Once);