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")); }
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")); }
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")); }