@@ -121,8 +121,11 @@ public void StatusStrip_Ctor_Default()
121
121
Assert . Null ( control . Region ) ;
122
122
Assert . NotNull ( control . Renderer ) ;
123
123
Assert . Same ( control . Renderer , control . Renderer ) ;
124
- Assert . IsType < ToolStripSystemRenderer > ( control . Renderer ) ;
125
- Assert . Equal ( ToolStripRenderMode . System , control . RenderMode ) ;
124
+
125
+ // TODO: Assume control.Renderer can be either ToolStripSystemRenderer or ToolStripProfessionalRenderer for the Moment.
126
+ Assert . True ( control . Renderer is ToolStripSystemRenderer or ToolStripProfessionalRenderer , "Renderer is not one of the expected types." ) ;
127
+ Assert . True ( control . RenderMode is ToolStripRenderMode . System or ToolStripRenderMode . ManagerRenderMode ) ;
128
+
126
129
Assert . True ( control . ResizeRedraw ) ;
127
130
Assert . Equal ( 200 , control . Right ) ;
128
131
Assert . Equal ( RightToLeft . No , control . RightToLeft ) ;
@@ -1257,15 +1260,15 @@ private class NonReadOnlyControlsStatusStrip : StatusStrip
1257
1260
1258
1261
private class SubStatusStrip : StatusStrip
1259
1262
{
1260
- public new const int ScrollStateAutoScrolling = StatusStrip . ScrollStateAutoScrolling ;
1263
+ public new const int ScrollStateAutoScrolling = ScrollableControl . ScrollStateAutoScrolling ;
1261
1264
1262
- public new const int ScrollStateHScrollVisible = StatusStrip . ScrollStateHScrollVisible ;
1265
+ public new const int ScrollStateHScrollVisible = ScrollableControl . ScrollStateHScrollVisible ;
1263
1266
1264
- public new const int ScrollStateVScrollVisible = StatusStrip . ScrollStateVScrollVisible ;
1267
+ public new const int ScrollStateVScrollVisible = ScrollableControl . ScrollStateVScrollVisible ;
1265
1268
1266
- public new const int ScrollStateUserHasScrolled = StatusStrip . ScrollStateUserHasScrolled ;
1269
+ public new const int ScrollStateUserHasScrolled = ScrollableControl . ScrollStateUserHasScrolled ;
1267
1270
1268
- public new const int ScrollStateFullDrag = StatusStrip . ScrollStateFullDrag ;
1271
+ public new const int ScrollStateFullDrag = ScrollableControl . ScrollStateFullDrag ;
1269
1272
1270
1273
public new bool CanEnableIme => base . CanEnableIme ;
1271
1274
0 commit comments