8 references to Find
System.Windows.Forms.Tests (8)
System\Windows\Forms\ToolStripItemCollectionTests.cs (8)
53Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 56Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 59Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 62Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 91Assert.Empty(collection.Find(key, searchAllChildren: true)); 92Assert.Empty(collection.Find(key, searchAllChildren: false)); 101Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 102Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));