5 references to new
System.Windows.Forms.Tests (5)
SerializableTypesTests.cs (1)
346
TreeNode treeNodeIn =
new
("node1", 1, 2, children)
System\Windows\Forms\TreeNodeTests.cs (4)
195
TreeNode node =
new
(text, imageIndex, selectedImageIndex, children);
235
Assert.Throws<ArgumentNullException>("nodes", () => new
TreeNode
("text", 0, 0, null));
250
Assert.Throws<ArgumentOutOfRangeException>("value", () => new
TreeNode
("text", imageIndex, 0, Array.Empty<TreeNode>()));
258
Assert.Throws<ArgumentOutOfRangeException>("value", () => new
TreeNode
("text", 0, selectedImageIndex, Array.Empty<TreeNode>()));