Skip to content

Commit 656d3c9

Browse files
author
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box)
committed
Fixes whitespace and rename test data
1 parent c5a4d14 commit 656d3c9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public void CheckBoxRenderer_DrawCheckBox_VisualStyleOn_OverloadWithTextFormat(T
9797

9898
emf.Validate(
9999
state,
100-
Application.RenderWithVisualStyles
101-
? Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_ALPHABLEND)
102-
: Validate.Repeat(Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_STRETCHDIBITS), 1),
100+
Application.RenderWithVisualStyles
101+
? Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_ALPHABLEND)
102+
: Validate.Repeat(Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_STRETCHDIBITS), 1),
103103
Validate.TextOut(
104-
control.Text,
105-
bounds: new Rectangle(3, 0, 20, 12),
106-
State.FontFace(SystemFonts.DefaultFont.Name)
104+
control.Text,
105+
bounds: new Rectangle(3, 0, 20, 12),
106+
State.FontFace(SystemFonts.DefaultFont.Name)
107107
)
108108
);
109109
}
@@ -136,8 +136,8 @@ public void CheckBoxRenderer_DrawCheckBox_OverloadWithHandle(CheckBoxState cBSta
136136
: Validate.Repeat(Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_STRETCHDIBITS), 1),
137137
Validate.TextOut(
138138
control.Text,
139-
bounds: new Rectangle(3, 0, 20, 12),
140-
State.FontFace(SystemFonts.DefaultFont.Name)
139+
bounds: new Rectangle(3, 0, 20, 12),
140+
State.FontFace(SystemFonts.DefaultFont.Name)
141141
),
142142
(focus
143143
? Validate.PolyPolygon16(new(new(bounds.X, bounds.Y), new Size(-1, -1)))

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public void CheckBox_CheckStateChangedEvent_Raised()
555555
eventFired.Should().BeTrue();
556556
}
557557

558-
public static IEnumerable<object[]> Appearance_FlatStyle()
558+
public static IEnumerable<object[]> Appearance_FlatStyle_TestData()
559559
{
560560
yield return new object[] { Appearance.Button, FlatStyle.Standard };
561561
yield return new object[] { Appearance.Button, FlatStyle.Flat };
@@ -568,11 +568,11 @@ public static IEnumerable<object[]> Appearance_FlatStyle()
568568
}
569569

570570
[WinFormsTheory]
571-
[MemberData(nameof(Appearance_FlatStyle))]
571+
[MemberData(nameof(Appearance_FlatStyle_TestData))]
572572
public void CheckBox_OverChangeRectangle_Get(Appearance appearance, FlatStyle flatStyle) => base.ButtonBase_OverChangeRectangle_Get(appearance, flatStyle);
573573

574574
[WinFormsTheory]
575-
[MemberData(nameof(Appearance_FlatStyle))]
575+
[MemberData(nameof(Appearance_FlatStyle_TestData))]
576576
public void CheckBox_DownChangeRectangle_ReturnsExpectedRectangle(Appearance appearance, FlatStyle flatStyle)
577577
{
578578
CheckBox checkBox = (CheckBox)CreateButton();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public void RadioButtonRenderer_DrawRadioButton_OverloadWithHandle(bool focus)
134134
: Validate.Repeat(Validate.SkipType(ENHANCED_METAFILE_RECORD_TYPE.EMR_STRETCHDIBITS), 1),
135135
Validate.TextOut(
136136
control.Text,
137-
bounds: new Rectangle(3, 0, 20, 12),
138-
State.FontFace(SystemFonts.DefaultFont.Name)
137+
bounds: new Rectangle(3, 0, 20, 12),
138+
State.FontFace(SystemFonts.DefaultFont.Name)
139139
),
140140
(focus
141141
? Validate.PolyPolygon16(new(new(bounds.X, bounds.Y), new Size(-1, -1)))

0 commit comments

Comments
 (0)