예제 #1
0
        public void Glob_PreciseMatch()
        {
            var glob = new GlobUtil("AssemblyInfo.cs");

            Assert.IsTrue(glob.IsMatch("AssemblyInfo.cs"));
            Assert.IsTrue(glob.IsMatch("./Source/Bumpy/Properties/AssemblyInfo.cs"));
            Assert.IsTrue(glob.IsMatch("./FooAssemblyInfo.cs"));
        }
예제 #2
0
        public void Glob_AnotherWildcardMatch()
        {
            var glob = new GlobUtil("**/AssemblyInfo.cs");

            Assert.IsTrue(glob.IsMatch("./AssemblyInfo.cs"));
            Assert.IsTrue(glob.IsMatch("./Source/Bumpy/Properties/AssemblyInfo.cs"));

            Assert.IsFalse(glob.IsMatch("./FooAssemblyInfo.cs"));
        }
예제 #3
0
 private void FileSeparatorTests(GlobUtil glob)
 {
     Assert.IsTrue(glob.IsMatch("./Properties/AssemblyInfo.cs"));
     Assert.IsTrue(glob.IsMatch(".\\Properties\\AssemblyInfo.cs"));
     Assert.IsTrue(glob.IsMatch(@".\Properties\AssemblyInfo.cs"));
 }