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