@@ -59,20 +59,20 @@ public void StatusStrip_Ctor_Default()
5959 Assert . Equal ( Padding . Empty , control . DefaultMargin ) ;
6060 Assert . Equal ( Size . Empty , control . DefaultMaximumSize ) ;
6161 Assert . Equal ( Size . Empty , control . DefaultMinimumSize ) ;
62- Assert . Equal ( new Padding ( 1 , 0 , 14 , 0 ) , control . DefaultPadding ) ;
62+ Assert . Equal ( new Padding ( 1 , 0 , 17 , 0 ) , control . DefaultPadding ) ;
6363 Assert . Equal ( new Size ( 200 , 22 ) , control . DefaultSize ) ;
6464 Assert . False ( control . DefaultShowItemToolTips ) ;
6565 Assert . False ( control . DesignMode ) ;
6666 Assert . Empty ( control . DisplayedItems ) ;
6767 Assert . Same ( control . DisplayedItems , control . DisplayedItems ) ;
68- Assert . Equal ( new Rectangle ( 1 , 0 , 185 , 22 ) , control . DisplayRectangle ) ;
68+ Assert . Equal ( new Rectangle ( 1 , 0 , 182 , 22 ) , control . DisplayRectangle ) ;
6969 Assert . Equal ( DockStyle . Bottom , control . Dock ) ;
7070 Assert . NotNull ( control . DockPadding ) ;
7171 Assert . Same ( control . DockPadding , control . DockPadding ) ;
7272 Assert . Equal ( 0 , control . DockPadding . Top ) ;
7373 Assert . Equal ( 0 , control . DockPadding . Bottom ) ;
7474 Assert . Equal ( 1 , control . DockPadding . Left ) ;
75- Assert . Equal ( 14 , control . DockPadding . Right ) ;
75+ Assert . Equal ( 17 , control . DockPadding . Right ) ;
7676 Assert . True ( control . DoubleBuffered ) ;
7777 Assert . True ( control . Enabled ) ;
7878 Assert . NotNull ( control . Events ) ;
@@ -108,13 +108,13 @@ public void StatusStrip_Ctor_Default()
108108 Assert . Equal ( Point . Empty , control . Location ) ;
109109 Assert . Equal ( Padding . Empty , control . Margin ) ;
110110 Assert . Equal ( Size . Empty , control . MaximumSize ) ;
111- Assert . Equal ( new Size ( 185 , 22 ) , control . MaxItemSize ) ;
111+ Assert . Equal ( new Size ( 182 , 22 ) , control . MaxItemSize ) ;
112112 Assert . Equal ( Size . Empty , control . MinimumSize ) ;
113113 Assert . Equal ( Orientation . Horizontal , control . Orientation ) ;
114114 Assert . NotNull ( control . OverflowButton ) ;
115115 Assert . Same ( control . OverflowButton , control . OverflowButton ) ;
116116 Assert . Same ( control , control . OverflowButton . GetCurrentParent ( ) ) ;
117- Assert . Equal ( new Padding ( 1 , 0 , 14 , 0 ) , control . Padding ) ;
117+ Assert . Equal ( new Padding ( 1 , 0 , 17 , 0 ) , control . Padding ) ;
118118 Assert . Null ( control . Parent ) ;
119119 Assert . True ( control . PreferredSize . Width > 0 ) ;
120120 Assert . True ( control . PreferredSize . Height > 0 ) ;
@@ -136,7 +136,7 @@ public void StatusStrip_Ctor_Default()
136136 Assert . Null ( control . Site ) ;
137137 Assert . Equal ( new Size ( 200 , 22 ) , control . Size ) ;
138138 Assert . True ( control . SizingGrip ) ;
139- Assert . Equal ( new Rectangle ( 188 , 0 , 12 , 22 ) , control . SizeGripBounds ) ;
139+ Assert . Equal ( new Rectangle ( 185 , 0 , 15 , 22 ) , control . SizeGripBounds ) ;
140140 Assert . True ( control . Stretch ) ;
141141 Assert . Equal ( 0 , control . TabIndex ) ;
142142 Assert . False ( control . TabStop ) ;
@@ -202,21 +202,21 @@ public void StatusStrip_CanOverflow_Set_GetReturnsExpected(bool value)
202202
203203 public static IEnumerable < object [ ] > DefaultPadding_Get_TestData ( )
204204 {
205- yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . Yes , new Padding ( 14 , 0 , 1 , 0 ) } ;
206- yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . No , new Padding ( 1 , 0 , 14 , 0 ) } ;
207- yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . Inherit , new Padding ( 1 , 0 , 14 , 0 ) } ;
205+ yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . Yes , new Padding ( 17 , 0 , 1 , 0 ) } ;
206+ yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . No , new Padding ( 1 , 0 , 17 , 0 ) } ;
207+ yield return new object [ ] { ToolStripLayoutStyle . Flow , RightToLeft . Inherit , new Padding ( 1 , 0 , 17 , 0 ) } ;
208208
209- yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . Yes , new Padding ( 14 , 0 , 1 , 0 ) } ;
210- yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . No , new Padding ( 1 , 0 , 14 , 0 ) } ;
211- yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . Inherit , new Padding ( 1 , 0 , 14 , 0 ) } ;
209+ yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . Yes , new Padding ( 17 , 0 , 1 , 0 ) } ;
210+ yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . No , new Padding ( 1 , 0 , 17 , 0 ) } ;
211+ yield return new object [ ] { ToolStripLayoutStyle . HorizontalStackWithOverflow , RightToLeft . Inherit , new Padding ( 1 , 0 , 17 , 0 ) } ;
212212
213- yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . Yes , new Padding ( 14 , 0 , 1 , 0 ) } ;
214- yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . No , new Padding ( 1 , 0 , 14 , 0 ) } ;
215- yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . Inherit , new Padding ( 1 , 0 , 14 , 0 ) } ;
213+ yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . Yes , new Padding ( 17 , 0 , 1 , 0 ) } ;
214+ yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . No , new Padding ( 1 , 0 , 17 , 0 ) } ;
215+ yield return new object [ ] { ToolStripLayoutStyle . StackWithOverflow , RightToLeft . Inherit , new Padding ( 1 , 0 , 17 , 0 ) } ;
216216
217- yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . Yes , new Padding ( 14 , 0 , 1 , 0 ) } ;
218- yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . No , new Padding ( 1 , 0 , 14 , 0 ) } ;
219- yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . Inherit , new Padding ( 1 , 0 , 14 , 0 ) } ;
217+ yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . Yes , new Padding ( 17 , 0 , 1 , 0 ) } ;
218+ yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . No , new Padding ( 1 , 0 , 17 , 0 ) } ;
219+ yield return new object [ ] { ToolStripLayoutStyle . Table , RightToLeft . Inherit , new Padding ( 1 , 0 , 17 , 0 ) } ;
220220
221221 yield return new object [ ] { ToolStripLayoutStyle . VerticalStackWithOverflow , RightToLeft . Yes , new Padding ( 1 , 3 , 1 , 22 ) } ;
222222 yield return new object [ ] { ToolStripLayoutStyle . VerticalStackWithOverflow , RightToLeft . No , new Padding ( 1 , 3 , 1 , 22 ) } ;
@@ -396,7 +396,7 @@ public void StatusStrip_LayoutStyle_Set_GetReturnsExpected(DockStyle dock, ToolS
396396 public static IEnumerable < object [ ] > Padding_Set_TestData ( )
397397 {
398398 yield return new object [ ] { default ( Padding ) , default ( Padding ) , 1 , 1 } ;
399- yield return new object [ ] { new Padding ( 1 , 0 , 14 , 0 ) , new Padding ( 1 , 0 , 14 , 0 ) , 0 , 0 } ;
399+ yield return new object [ ] { new Padding ( 1 , 0 , 17 , 0 ) , new Padding ( 1 , 0 , 17 , 0 ) , 0 , 0 } ;
400400 yield return new object [ ] { new Padding ( 1 , 2 , 3 , 4 ) , new Padding ( 1 , 2 , 3 , 4 ) , 1 , 1 } ;
401401 yield return new object [ ] { new Padding ( 1 ) , new Padding ( 1 ) , 1 , 1 } ;
402402 yield return new object [ ] { new Padding ( - 1 , - 2 , - 3 , - 4 ) , Padding . Empty , 1 , 2 } ;
@@ -620,9 +620,9 @@ public static IEnumerable<object[]> SizeGripBounds_Get_TestData()
620620 {
621621 foreach ( ToolStripLayoutStyle layoutStyle in Enum . GetValues ( typeof ( ToolStripLayoutStyle ) ) )
622622 {
623- yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 0 , 12 , 22 ) } ;
624- yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 188 , 0 , 12 , 22 ) } ;
625- yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 188 , 0 , 12 , 22 ) } ;
623+ yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 0 , 15 , 22 ) } ;
624+ yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 185 , 0 , 15 , 22 ) } ;
625+ yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 185 , 0 , 15 , 22 ) } ;
626626 yield return new object [ ] { false , layoutStyle , RightToLeft . Yes , Rectangle . Empty } ;
627627 yield return new object [ ] { false , layoutStyle , RightToLeft . No , Rectangle . Empty } ;
628628 yield return new object [ ] { false , layoutStyle , RightToLeft . Inherit , Rectangle . Empty } ;
@@ -646,9 +646,9 @@ public static IEnumerable<object[]> SizeGripBounds_GetLargeSize_TestData()
646646 {
647647 foreach ( ToolStripLayoutStyle layoutStyle in Enum . GetValues ( typeof ( ToolStripLayoutStyle ) ) )
648648 {
649- yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 10 , 12 , 22 ) } ;
650- yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 198 , 10 , 12 , 22 ) } ;
651- yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 198 , 10 , 12 , 22 ) } ;
649+ yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 10 , 15 , 22 ) } ;
650+ yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 195 , 10 , 15 , 22 ) } ;
651+ yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 195 , 10 , 15 , 22 ) } ;
652652 yield return new object [ ] { false , layoutStyle , RightToLeft . Yes , Rectangle . Empty } ;
653653 yield return new object [ ] { false , layoutStyle , RightToLeft . No , Rectangle . Empty } ;
654654 yield return new object [ ] { false , layoutStyle , RightToLeft . Inherit , Rectangle . Empty } ;
@@ -673,9 +673,9 @@ public static IEnumerable<object[]> SizeGripBounds_GetSmallSize_TestData()
673673 {
674674 foreach ( ToolStripLayoutStyle layoutStyle in Enum . GetValues ( typeof ( ToolStripLayoutStyle ) ) )
675675 {
676- yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 0 , 12 , 12 ) } ;
677- yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 178 , 0 , 12 , 12 ) } ;
678- yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 178 , 0 , 12 , 12 ) } ;
676+ yield return new object [ ] { true , layoutStyle , RightToLeft . Yes , new Rectangle ( 0 , 0 , 15 , 12 ) } ;
677+ yield return new object [ ] { true , layoutStyle , RightToLeft . No , new Rectangle ( 175 , 0 , 15 , 12 ) } ;
678+ yield return new object [ ] { true , layoutStyle , RightToLeft . Inherit , new Rectangle ( 175 , 0 , 15 , 12 ) } ;
679679 yield return new object [ ] { false , layoutStyle , RightToLeft . Yes , Rectangle . Empty } ;
680680 yield return new object [ ] { false , layoutStyle , RightToLeft . No , Rectangle . Empty } ;
681681 yield return new object [ ] { false , layoutStyle , RightToLeft . Inherit , Rectangle . Empty } ;
0 commit comments