Fixed unit test verifying open windows of external applications.
This commit is contained in:
parent
5284a52278
commit
543ad7040b
1 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue