public void RaiseSearchResultMessages_NoMatchInPathBackward() { Create(""); _statusUtil.Setup(x => x.OnError(Resources.Common_SearchHitTopWithout("dog"))).Verifiable(); _operations.RaiseSearchResultMessage(SearchResult.NewNotFound( VimUtil.CreateSearchData("dog", SearchKind.Backward), true)); _statusUtil.Verify(); }
public void FindNext_IgnoreCaseConflictiong() { Create("cat dog FISH"); _globalSettings.IgnoreCase = false; var data = VimUtil.CreateSearchData("fish", options: SearchOptions.ConsiderIgnoreCase); var result = _search.FindNext(data, _textBuffer.GetPoint(0), _navigator); Assert.IsTrue(result.IsNotFound); }
public void RaiseSearchResultMessages_NoMatch() { Create(""); _statusUtil.Setup(x => x.OnError(Resources.Common_PatternNotFound("dog"))).Verifiable(); _operations.RaiseSearchResultMessage(SearchResult.NewNotFound( VimUtil.CreateSearchData("dog"), false)); _statusUtil.Verify(); }