@@ -35,7 +35,7 @@ public StatusCommandUITests()
35
35
[ Fact ]
36
36
public void SetStatusInformation_WithNullComponent_ShouldNotInvokeCommand ( )
37
37
{
38
- _statusCommandUI . SetStatusInformation ( null ) ;
38
+ _statusCommandUI . SetStatusInformation ( selectedComponent : null ) ;
39
39
_mockMenuCommand . Verify ( mc => mc . Invoke ( It . IsAny < Rectangle > ( ) ) , Times . Never ) ;
40
40
}
41
41
@@ -44,6 +44,7 @@ public void SetStatusInformation_WithControlComponent_ShouldInvokeWithOriginalBo
44
44
{
45
45
using Control control = new ( ) { Bounds = new ( 10 , 20 , 30 , 40 ) } ;
46
46
TestSetStatusInformation ( ( ) => _statusCommandUI . SetStatusInformation ( control ) , new ( 10 , 20 , 30 , 40 ) ) ;
47
+ control . IsHandleCreated . Should ( ) . BeFalse ( ) ;
47
48
}
48
49
49
50
[ Fact ]
@@ -123,10 +124,10 @@ private void TestSetStatusInformation(Action action, Rectangle expectedRectangle
123
124
private void VerifyInvoke ( Rectangle expectedRectangle )
124
125
{
125
126
_mockMenuCommand . Verify ( mc => mc . Invoke ( It . Is < Rectangle > ( r =>
126
- r . X == expectedRectangle . X &&
127
- r . Y == expectedRectangle . Y &&
128
- r . Width == expectedRectangle . Width &&
129
- r . Height == expectedRectangle . Height ) ) , Times . Once ) ;
127
+ r . X == expectedRectangle . X
128
+ && r . Y == expectedRectangle . Y
129
+ && r . Width == expectedRectangle . Width
130
+ && r . Height == expectedRectangle . Height ) ) , Times . Once ) ;
130
131
}
131
132
132
133
private class CustomComponent : Component
0 commit comments