16 references to Contains
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionService.cs (2)
327
if (_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? dacl) && dacl.
Contains
(actionList))
344
if (!_designerActionLists.TryGetValue(comp, out DesignerActionListCollection? actionLists) || !actionLists.
Contains
(actionList))
System.Windows.Forms.Design.Tests (14)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (14)
44
Assert.True(collection.
Contains
(value1));
50
Assert.True(collection.
Contains
(value2));
55
Assert.True(collection.
Contains
(null));
102
Assert.True(collection.
Contains
(value1));
108
Assert.True(collection.
Contains
(value2));
113
Assert.True(collection.
Contains
(null));
127
Assert.False(collection.
Contains
(value));
133
Assert.False(collection.
Contains
(null));
149
Assert.False(collection.
Contains
(value1));
151
Assert.True(collection.
Contains
(value2));
157
Assert.False(collection.
Contains
(value2));
159
Assert.True(collection.
Contains
(null));
182
Assert.False(collection.
Contains
(new DesignerActionList(null)));
183
Assert.False(collection.
Contains
(null));