public void FilespecApBCStar_DoesNotMatch(string path)
 {
     var f = new FileFilterPattern(false, "A.BC*", FilesystemMatchType.FilesOnly);
     Assert.False(f.MatchesPath(path));
     bool? r1 = f.IncludesPath(path);
     Assert.False(r1.HasValue);
     Assert.IsNull(r1);
     bool? r2 = f.ExcludesPath(path);
     Assert.False(r2.HasValue);
     Assert.IsNull(r2);
 }
 public void FilespecABCQpXYZ_DoesMatch(string path)
 {
     var f = new FileFilterPattern(true, "ABC?.XYZ", FilesystemMatchType.FilesOnly);
     Assert.True(f.MatchesPath(path));
     bool? r1 = f.IncludesPath(path);
     Assert.True(r1.HasValue);
     Assert.IsNotNull(r1);
     Assert.IsTrue(r1.Value);
     bool? r2 = f.ExcludesPath(path);
     Assert.True(r2.HasValue);
     Assert.IsNotNull(r2);
     Assert.IsFalse(r2.Value);
 }
        public void FilespecApBCStar_DoesNotMatch(string path)
        {
            var f = new FileFilterPattern(false, "A.BC*", FilesystemMatchType.FilesOnly);

            Assert.False(f.MatchesPath(path));
            bool?r1 = f.IncludesPath(path);

            Assert.False(r1.HasValue);
            Assert.IsNull(r1);
            bool?r2 = f.ExcludesPath(path);

            Assert.False(r2.HasValue);
            Assert.IsNull(r2);
        }
        public void FilespecABCQpXYZ_DoesMatch(string path)
        {
            var f = new FileFilterPattern(true, "ABC?.XYZ", FilesystemMatchType.FilesOnly);

            Assert.True(f.MatchesPath(path));
            bool?r1 = f.IncludesPath(path);

            Assert.True(r1.HasValue);
            Assert.IsNotNull(r1);
            Assert.IsTrue(r1.Value);
            bool?r2 = f.ExcludesPath(path);

            Assert.True(r2.HasValue);
            Assert.IsNotNull(r2);
            Assert.IsFalse(r2.Value);
        }