10 references to Find
System.Windows.Forms.Tests (10)
System\Windows\Forms\RichTextBoxTests.cs (10)
8072Assert.Equal(expected, control.Find(str, start, options)); 8202Assert.Equal(expected, control.Find(str, start, options)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8499Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8514Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight));