Exemplo n.º 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);
        }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public string FilterFromText_Retain_Suffix_Only(string name, string filterString)
 {
     return(StringLibrary.FilterFromText(name, filterString, retainPrefix: false, retainSuffix: true));
 }