From fd55367a7d2e9a43b60b8fd7eb60de5782280330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 6 Jun 2023 12:07:49 +0200 Subject: [PATCH] SEBWIN-674: Improved unit test for third-party application logic. --- .../ExternalApplicationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs b/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs index 377bad56..65c81ffe 100644 --- a/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs +++ b/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs @@ -83,7 +83,7 @@ namespace SafeExamBrowser.Applications.UnitTests Assert.IsTrue(windows.Any(w => w.Handle == new IntPtr(345))); Assert.IsTrue(windows.Any(w => w.Handle == new IntPtr(567))); - nativeMethods.Setup(n => n.GetOpenWindows()).Returns(openWindows.Take(4)); + nativeMethods.Setup(n => n.GetOpenWindows()).Returns(openWindows.Skip(2)); process2.Raise(p => p.Terminated += null, default(int)); sync.WaitOne();