9 references to GetItems
System.Windows.Forms.Tests (9)
System\Windows\Forms\TabControlTests.cs (9)
3857object[] result = control.GetItems(baseType); 3874object[] result = control.GetItems(baseType); 3877Assert.NotSame(result, control.GetItems(baseType)); 3886object[] result = Assert.IsType<SubTabPage[]>(control.GetItems(typeof(SubTabPage))); 3888Assert.NotSame(result, control.GetItems(typeof(SubTabPage))); 3895Assert.Throws<ArgumentNullException>("elementType", () => control.GetItems(null)); 3903Assert.Throws<InvalidCastException>(() => control.GetItems(baseType)); 3914Assert.Throws<InvalidCastException>(() => control.GetItems(typeof(int))); 3925Assert.Throws<ArrayTypeMismatchException>(() => control.GetItems(typeof(SubTabPage)));