CheckFolderName() 공개 메소드

Checks the name of the folder.
public CheckFolderName ( string name, string &reason ) : bool
name string Name of the folder.
reason string Reason why true was returned.
리턴 bool
 public void FilterLetsEventsPassIfNotMatchingWildcard() {
     var wildcards = new List<string>();
     wildcards.Add(".tmp");
     var filter = new IgnoredFolderNameFilter { Wildcards = wildcards };
     string reason;
     Assert.That(filter.CheckFolderName(".cache", out reason), Is.False);
     Assert.That(string.IsNullOrEmpty(reason), Is.True);
 }
 public void FilterLetsFSEventsPassIfNoWildcardsAreSet() {
     var filter = new IgnoredFolderNameFilter();
     string reason;
     Assert.That(filter.CheckFolderName("foldername", out reason), Is.False);
     Assert.That(string.IsNullOrEmpty(reason), Is.True);
 }