Skip to content

Commit 4b84a6b

Browse files
committed
fix failed test
1 parent 7e46623 commit 4b84a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/NetAutoGUI.Windows.IntegrationTests/WindowExtensionsTests/ActivateShould.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public void Work_Correctly()
1717
try
1818
{
1919
Window? win = process.WaitForWindowByTitle("WinFormsAppForTest1");
20-
User32.ShowWindow(new HWND(new IntPtr(win.Id)), ShowWindowCommand.SW_MINIMIZE); //Hide the window first.
21-
TestHelpers.RecognizeText(GUI.Screenshot.Screenshot().Data).Should().NotContain("Zack666");
2220
win?.Activate();
2321
TestHelpers.RecognizeText(GUI.Screenshot.Screenshot().Data).Should().Contain("Zack666");
22+
User32.ShowWindow(new HWND(new IntPtr(win.Id)), ShowWindowCommand.SW_MINIMIZE); //Hide the window
23+
TestHelpers.RecognizeText(GUI.Screenshot.Screenshot().Data).Should().NotContain("Zack666");
2424
}
2525
finally
2626
{

0 commit comments

Comments
 (0)