public void FilterFromText_No_Events_Messenger(string name, string filterString) { var wasCalled = false; StringLibrary.Messenger += (e) => wasCalled = true; StringLibrary.FilterFromText(name, filterString, retainPrefix: true, retainSuffix: true, suppressWarnings: false); Assert.IsFalse(wasCalled); }
public string FilterFromText_Retain_Prefix_And_Suffix_Case_Sensitive(string name, string filterString) { return(StringLibrary.FilterFromText(name, filterString, retainPrefix: true, retainSuffix: true, caseSensitive: true)); }
public string FilterFromText_Remove_Final_Directory_In_Path(string name, string filterString) { return(StringLibrary.FilterFromText(name, filterString, retainPrefix: true, retainSuffix: true, filterEndOfName: true)); }
public string FilterFromText_Retain_Suffix_Only(string name, string filterString) { return(StringLibrary.FilterFromText(name, filterString, retainPrefix: false, retainSuffix: true)); }