Easy.Test/Text/SearchTest.cs
/// <summary>
/// Tests FindNext of different string after FindFirst
/// </summary>
Tests FindNext of different string after FindFirst
Tests FindNext of different string after FindFirst
[TestMethod]
        public void TestFindFirstFindOtherNext()
        {
            _document.Text = "some foo string to find foo";
            _search.FindFirst("string");
            _search.FindNext("foo");
            Assert.AreEqual(24, _document.Selection.StartPosition);
            Assert.AreEqual(27, _document.Selection.EndPosition);
        }
[ TestMethod ] public void TestFindFirstFindOtherNext ( ) { _document . Text = " " ; _search . FindFirst ( " " ) ; _search . FindNext ( " " ) ; Assert . AreEqual ( 24 , _document . Selection . StartPosition ) ; Assert . AreEqual ( 27 , _document . Selection . EndPosition ) ; }
Tests FindNext of different string after FindFirst
Tests FindNext of different string after FindFirst
// Should find second "foo" (the one after "string")