SEBWIN-674: Improved unit test for third-party application logic.

This commit is contained in:
Damian Büchel 2023-06-06 12:07:49 +02:00
parent 11b10e8e45
commit fd55367a7d

View file

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