9 references to Find
System.Windows.Forms.Tests (9)
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
1469
Assert.Equal([child2, child3, grandchild2, grandchild3], collection.
Find
(key, searchAllChildren: true));
1472
Assert.Equal([child2, child3, grandchild2, grandchild3], collection.
Find
(key, searchAllChildren: true));
1475
Assert.Equal([child2, child3], collection.
Find
(key, searchAllChildren: false));
1478
Assert.Equal([child2, child3], collection.
Find
(key, searchAllChildren: false));
1506
Assert.Empty(collection.
Find
(key, searchAllChildren: true));
1507
Assert.Empty(collection.
Find
(key, searchAllChildren: false));
1516
Assert.Throws<ArgumentNullException>("key", () => collection.
Find
(key, searchAllChildren: true));
1517
Assert.Throws<ArgumentNullException>("key", () => collection.
Find
(key, searchAllChildren: false));
System\Windows\Forms\LayoutEventArgsTests.cs (1)
74
using (Panel panel = (Panel)tableLayoutPanel.Controls.
Find
("Panel", false).First())