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