Fixed unit test verifying open windows of external applications.

This commit is contained in:
Damian Büchel 2023-06-23 10:40:57 +02:00
parent 5284a52278
commit 543ad7040b

View file

@ -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)));
}