Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }