Implemented interface member:
method
IsMatch
Microsoft.Build.Globbing.IMSBuildGlob.IsMatch(System.String)
22 references to IsMatch
Microsoft.Build (2)
Globbing\MSBuildGlob.cs (2)
112/// Similar to <see cref="IsMatch" /> but also provides the match groups for the glob parts 162/// The fixed directory part of the glob and the match arguments (<see cref="IsMatch" /> and <see cref="MatchInfo" />)
Microsoft.Build.Engine.UnitTests (20)
Globbing\MSBuildGlob_Tests.cs (20)
147Assert.False(glob.IsMatch($"b/.../c/d.cs")); 177Assert.Throws<ArgumentNullException>(() => glob.IsMatch(null)); 187Assert.False(glob.IsMatch(invalidPathChar.ToString())); 197Assert.False(glob.IsMatch(invalidFileChar.ToString())); 209Assert.True(glob.IsMatch("\\")); 212Assert.False(glob.IsMatch("/")); 217Assert.False(glob.IsMatch("\\")); 220Assert.False(glob.IsMatch("/")); 229Assert.True(glob.IsMatch("abc")); 239Assert.False(glob.IsMatch("acd")); 247Assert.False(glob.IsMatch("B")); 257Assert.True(glob.IsMatch(string.Empty)); 267Assert.True(glob.IsMatch(string.Empty)); 277Assert.False(glob.IsMatch(string.Empty)); 287Assert.True(glob.IsMatch(illegalSpec)); 302Assert.True(glob.IsMatch(stringToMatch)); 306Assert.False(glob.IsMatch(stringToMatch)); 320Assert.True(glob.IsMatch(@"../x/d13/../../x/d12/d23/../a.cs")); 321Assert.False(glob.IsMatch(@"../x/d13/../x/d12/d23/../a.cs")); 345Assert.True(glob.IsMatch(stringToMatch));