From 543ad7040be719ca59d5badd9df8d0c7e12dce69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 23 Jun 2023 10:40:57 +0200 Subject: [PATCH] Fixed unit test verifying open windows of external applications. --- .../ExternalApplicationTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs b/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs index 65c81ffe..2b7276f6 100644 --- a/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs +++ b/SafeExamBrowser.Applications.UnitTests/ExternalApplicationTests.cs @@ -90,8 +90,8 @@ namespace SafeExamBrowser.Applications.UnitTests windows = sut.GetWindows(); - Assert.AreEqual(2, windows.Count()); - Assert.IsTrue(windows.Any(w => w.Handle == new IntPtr(234))); + Assert.AreEqual(1, windows.Count()); + Assert.IsTrue(windows.Any(w => w.Handle != new IntPtr(234))); Assert.IsTrue(windows.Any(w => w.Handle == new IntPtr(345))); Assert.IsTrue(windows.All(w => w.Handle != new IntPtr(567))); }