9 references to Find
System.Windows.Forms.Tests (9)
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
1471
Assert.Equal([child2, child3, grandchild2, grandchild3], collection.
Find
(key, searchAllChildren: true));
1474
Assert.Equal([child2, child3, grandchild2, grandchild3], collection.
Find
(key, searchAllChildren: true));
1477
Assert.Equal([child2, child3], collection.
Find
(key, searchAllChildren: false));
1480
Assert.Equal([child2, child3], collection.
Find
(key, searchAllChildren: false));
1508
Assert.Empty(collection.
Find
(key, searchAllChildren: true));
1509
Assert.Empty(collection.
Find
(key, searchAllChildren: false));
1518
Assert.Throws<ArgumentNullException>("key", () => collection.
Find
(key, searchAllChildren: true));
1519
Assert.Throws<ArgumentNullException>("key", () => collection.
Find
(key, searchAllChildren: false));
System\Windows\Forms\LayoutEventArgsTests.cs (1)
76
using (Panel panel = (Panel)tableLayoutPanel.Controls.
Find
("Panel", false).First())