Exemple #1
0
        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);
        }
Exemple #2
0
 public string FilterFromText_Retain_Prefix_And_Suffix_Case_Sensitive(string name, string filterString)
 {
     return(StringLibrary.FilterFromText(name, filterString, retainPrefix: true, retainSuffix: true, caseSensitive: true));
 }
Exemple #3
0
 public string FilterFromText_Remove_Final_Directory_In_Path(string name, string filterString)
 {
     return(StringLibrary.FilterFromText(name, filterString, retainPrefix: true, retainSuffix: true, filterEndOfName: true));
 }
Exemple #4
0
 public string FilterFromText_Retain_Suffix_Only(string name, string filterString)
 {
     return(StringLibrary.FilterFromText(name, filterString, retainPrefix: false, retainSuffix: true));
 }