Easy.Test/Text/SearchTest.cs
/// <summary>
/// Tests FindFirst for a non-existent string
/// </summary>
Tests FindFirst for a non-existent string
Tests FindFirst for a non - existent string
[TestMethod]
        public void TestNotFoundFirst()
        {
            _document.Text = "some string";
            _document.Selection.SetRange(1, 2);
            _search.FindFirst("foo");
            Assert.AreEqual(1, _document.Selection.StartPosition);
            Assert.AreEqual(2, _document.Selection.EndPosition);
        }
[ TestMethod ] public void TestNotFoundFirst ( ) { _document . Text = " " ; _document . Selection . SetRange ( 1 , 2 ) ; _search . FindFirst ( " " ) ; Assert . AreEqual ( 1 , _document . Selection . StartPosition ) ; Assert . AreEqual ( 2 , _document . Selection . EndPosition ) ; }
Tests FindFirst for a non-existent string
Tests FindFirst for a non - existent string