File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/NetAutoGUI.Windows.IntegrationTests/WindowExtensionsTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ public void Work_Correctly()
17
17
try
18
18
{
19
19
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" ) ;
22
20
win ? . Activate ( ) ;
23
21
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" ) ;
24
24
}
25
25
finally
26
26
{
You can’t perform that action at this time.
0 commit comments