@@ -352,7 +352,7 @@ public void Label_BorderStyle_Set_GetReturnsExpected(bool autoSize, BorderStyle
352
352
[ InlineData ( FlatStyle . Flat ) ]
353
353
public void Label_FlatStyle_Set_GetReturnsExpected ( FlatStyle style )
354
354
{
355
- using Label label = new Label ( ) ;
355
+ using Label label = new ( ) ;
356
356
label . FlatStyle = style ;
357
357
label . CreateControl ( ) ;
358
358
@@ -388,7 +388,7 @@ public void Label_FlatStyle_Set_GetReturnsExpected(FlatStyle style)
388
388
[ InlineData ( ContentAlignment . BottomRight ) ]
389
389
public void Label_TextAlign_Set_GetReturnsExpected ( ContentAlignment alignment )
390
390
{
391
- using Label label = new Label ( ) ;
391
+ using Label label = new ( ) ;
392
392
label . TextAlign = alignment ;
393
393
394
394
Assert . Equal ( alignment , label . TextAlign ) ;
@@ -398,7 +398,7 @@ public void Label_TextAlign_Set_GetReturnsExpected(ContentAlignment alignment)
398
398
[ WinFormsFact ]
399
399
public void Label_TextAlign_SetSameValue_DoesNotInvalidate ( )
400
400
{
401
- using Label label = new Label ( ) ;
401
+ using Label label = new ( ) ;
402
402
label . TextAlign = ContentAlignment . TopLeft ;
403
403
404
404
label . CreateControl ( ) ;
@@ -411,7 +411,7 @@ public void Label_TextAlign_SetSameValue_DoesNotInvalidate()
411
411
[ WinFormsFact ]
412
412
public void Label_TextAlign_SetDifferentValue_Invalidate ( )
413
413
{
414
- using Label label = new Label ( ) ;
414
+ using Label label = new ( ) ;
415
415
label . TextAlign = ContentAlignment . TopLeft ;
416
416
417
417
label . CreateControl ( ) ;
0 commit comments