System\Windows\Forms\ListView.ListViewItemCollectionTests.cs (8)
52Assert.Equal([child2, child3], collection.Find(key, searchAllSubItems: true));
55Assert.Equal([child2, child3], collection.Find(key, searchAllSubItems: true));
58Assert.Equal([child2, child3], collection.Find(key, searchAllSubItems: false));
61Assert.Equal([child2, child3], collection.Find(key, searchAllSubItems: false));
90Assert.Empty(collection.Find(key, searchAllSubItems: true));
91Assert.Empty(collection.Find(key, searchAllSubItems: false));
100Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: true));
101Assert.Throws<ArgumentNullException>("key", () => collection.Find(key, searchAllSubItems: false));