@@ -11,7 +11,7 @@ private static ToolStripContainer.ToolStripContainerTypedControlCollection Creat
11
11
[ WinFormsFact ]
12
12
public void Add_NullValue_DoesNothing ( )
13
13
{
14
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( false ) ;
14
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( isReadOnly : false ) ;
15
15
16
16
collection . Add ( null ) ;
17
17
@@ -21,7 +21,7 @@ public void Add_NullValue_DoesNothing()
21
21
[ WinFormsFact ]
22
22
public void Add_WhenReadOnly_ThrowsNotSupportedException ( )
23
23
{
24
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( true ) ;
24
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( isReadOnly : true ) ;
25
25
using ToolStripPanel panel = new ( ) ;
26
26
27
27
Action act = ( ) => collection . Add ( panel ) ;
@@ -32,7 +32,7 @@ public void Add_WhenReadOnly_ThrowsNotSupportedException()
32
32
[ WinFormsFact ]
33
33
public void Add_InvalidType_ThrowsArgumentException ( )
34
34
{
35
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( false ) ;
35
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( isReadOnly : false ) ;
36
36
using Button button = new ( ) ;
37
37
38
38
Action act = ( ) => collection . Add ( button ) ;
@@ -67,7 +67,7 @@ public void Add_ValidType_AddsSuccessfully(Type type)
67
67
public void Remove_WhenReadOnly_ThrowsNotSupportedException ( Type type )
68
68
{
69
69
using ToolStripContainer container = new ( ) ;
70
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , true ) ;
70
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , isReadOnly : true ) ;
71
71
using Control control = ( Control ) Activator . CreateInstance ( type ) ! ;
72
72
container . ContentPanel . Controls . Add ( control ) ;
73
73
@@ -79,7 +79,7 @@ public void Remove_WhenReadOnly_ThrowsNotSupportedException(Type type)
79
79
[ WinFormsFact ]
80
80
public void Remove_Panel_WhenNotReadOnly_RemovesPanel ( )
81
81
{
82
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( false ) ;
82
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = CreateCollection ( isReadOnly : false ) ;
83
83
using ToolStripPanel panel = new ( ) ;
84
84
collection . Add ( panel ) ;
85
85
@@ -92,7 +92,7 @@ public void Remove_Panel_WhenNotReadOnly_RemovesPanel()
92
92
public void Remove_NonPanelOrContentPanel_DoesNotThrow ( )
93
93
{
94
94
using ToolStripContainer container = new ( ) ;
95
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , false ) ;
95
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , isReadOnly : false ) ;
96
96
using Button button = new ( ) ;
97
97
container . ContentPanel . Controls . Add ( button ) ;
98
98
@@ -108,7 +108,7 @@ public void Remove_NonPanelOrContentPanel_DoesNotThrow()
108
108
public void SetChildIndexInternal_WhenReadOnly_ThrowsNotSupportedException ( Type type )
109
109
{
110
110
using ToolStripContainer container = new ( ) ;
111
- ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , true ) ;
111
+ ToolStripContainer . ToolStripContainerTypedControlCollection collection = new ( container , isReadOnly : true ) ;
112
112
using Control control = ( Control ) Activator . CreateInstance ( type ) ! ;
113
113
container . ContentPanel . Controls . Add ( control ) ;
114
114
0 commit comments