Skip to content

Commit 8ad55c1

Browse files
committed
Update to follow code style
1 parent 98ecc0a commit 8ad55c1

File tree

1 file changed

+4
-4
lines changed
  • src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms

1 file changed

+4
-4
lines changed

src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LabelTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public void Label_BorderStyle_Set_GetReturnsExpected(bool autoSize, BorderStyle
352352
[InlineData(FlatStyle.Flat)]
353353
public void Label_FlatStyle_Set_GetReturnsExpected(FlatStyle style)
354354
{
355-
using Label label = new Label();
355+
using Label label = new();
356356
label.FlatStyle = style;
357357
label.CreateControl();
358358

@@ -388,7 +388,7 @@ public void Label_FlatStyle_Set_GetReturnsExpected(FlatStyle style)
388388
[InlineData(ContentAlignment.BottomRight)]
389389
public void Label_TextAlign_Set_GetReturnsExpected(ContentAlignment alignment)
390390
{
391-
using Label label = new Label();
391+
using Label label = new();
392392
label.TextAlign = alignment;
393393

394394
Assert.Equal(alignment, label.TextAlign);
@@ -398,7 +398,7 @@ public void Label_TextAlign_Set_GetReturnsExpected(ContentAlignment alignment)
398398
[WinFormsFact]
399399
public void Label_TextAlign_SetSameValue_DoesNotInvalidate()
400400
{
401-
using Label label = new Label();
401+
using Label label = new();
402402
label.TextAlign = ContentAlignment.TopLeft;
403403

404404
label.CreateControl();
@@ -411,7 +411,7 @@ public void Label_TextAlign_SetSameValue_DoesNotInvalidate()
411411
[WinFormsFact]
412412
public void Label_TextAlign_SetDifferentValue_Invalidate()
413413
{
414-
using Label label = new Label();
414+
using Label label = new();
415415
label.TextAlign = ContentAlignment.TopLeft;
416416

417417
label.CreateControl();

0 commit comments

Comments
 (0)