CheckPath() публичный Метод

Checks the path if it begins with any path, which is ignored. Reports ignores to the queue.
public CheckPath ( string localPath, string &reason ) : bool
localPath string /// The local path which should be checked, if it should be ignored. ///
reason string Reason of the result value if returns true
Результат bool
        public void AllowCorrectPaths()
        {
            var filter = new IgnoredFoldersFilter();

            string reason;
            Assert.That(filter.CheckPath(Path.GetTempPath(), out reason), Is.False);
            Assert.That(string.IsNullOrEmpty(reason), Is.True);
        }
        public void ForbidIgnoredFolderNames()
        {
            var ignoredFolder = new List<string>();
            ignoredFolder.Add(Path.GetTempPath());
            var filter = new IgnoredFoldersFilter { IgnoredPaths = ignoredFolder };

            string reason;
            Assert.That(filter.CheckPath(Path.GetTempPath(), out reason), Is.True);
            Assert.That(string.IsNullOrEmpty(reason), Is.False);
        }