private int FindWordInStringHelper(string toFind, string target, SearchDirection direction, bool isCaseSensitive) { MockConversationSearchTarget searchTarget = new MockConversationSearchTarget(); searchTarget.SearchTargetControl = CreateRichTextBoxWithContent(target); FindDialogModel_Accessor model = new FindDialogModel_Accessor(searchTarget); model.CaseSensitive = isCaseSensitive; return(model.FindWordInString(toFind, target, direction)); }
private int FindWordInStringHelper(string toFind, string target, SearchDirection direction, bool isCaseSensitive) { MockConversationSearchTarget searchTarget = new MockConversationSearchTarget(); searchTarget.SearchTargetControl = CreateRichTextBoxWithContent(target); FindDialogModel_Accessor model = new FindDialogModel_Accessor(searchTarget); model.CaseSensitive = isCaseSensitive; return model.FindWordInString(toFind, target, direction); }