8 references to Find
System.Windows.Forms.Tests (8)
System\Windows\Forms\ToolStripItemCollectionTests.cs (8)
51Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 54Assert.Equal(new ToolStripMenuItem[] { child2, child3, grandchild2, grandchild3 }, collection.Find(key, searchAllChildren: true)); 57Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 60Assert.Equal(new ToolStripMenuItem[] { child2, child3 }, collection.Find(key, searchAllChildren: false)); 89Assert.Empty(collection.Find(key, searchAllChildren: true)); 90Assert.Empty(collection.Find(key, searchAllChildren: false)); 99Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: true)); 100Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllChildren: false));