11 references to Find
System.Windows.Forms.Tests (11)
System\Windows\Forms\TreeNodeCollectionTests.cs (11)
176Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 179Assert.Equal([child2, child3, grandchild2, grandchild3], collection.Find(key, searchAllChildren: true)); 182Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 185Assert.Equal([child2, child3], collection.Find(key, searchAllChildren: false)); 213Assert.Empty(collection.Find(key, searchAllChildren: true)); 214Assert.Empty(collection.Find(key, searchAllChildren: false)); 261TreeNode treeNode = treeView.Nodes.Find(key, searchAllChildren: true)[0]; 311treeNode = treeView2.Nodes.Find("2", searchAllChildren: true)[0]; 327treeNode = treeView3.Nodes.Find("2", searchAllChildren: true)[0]; 338Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 339Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));