6 references to CreateInstance
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\CollectionEditorTests.cs (6)
177
Assert.IsType<Component>(editor.
CreateInstance
(typeof(Component)));
235
Assert.Same(result, editor.
CreateInstance
(typeof(Component)));
286
Assert.IsType<Component>(editor.
CreateInstance
(typeof(Component)));
339
Assert.Same(result, editor.
CreateInstance
(typeof(Component)));
354
Assert.Equal(expected, editor.
CreateInstance
(type));
361
Assert.Throws<ArgumentNullException>("itemType", () => editor.
CreateInstance
(null));