System\Windows\Forms\ToolTipTests.cs (4)
750toolTip.Show(text, control, duration);
759toolTip.Show(text, mockWindow.Object, duration);
767Assert.Throws<ArgumentNullException>("window", () => toolTip.Show("text", null, 1));
775Assert.Throws<ArgumentOutOfRangeException>("duration", () => toolTip.Show("text", mockWindow.Object, -1));