10 references to Find
System.Windows.Forms.Tests (10)
System\Windows\Forms\RichTextBoxTests.cs (10)
8070Assert.Equal(expected, control.Find(str, start, options)); 8200Assert.Equal(expected, control.Find(str, start, options)); 8433Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8451Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8497Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8512Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight));