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)
150Assert.False(glob.IsMatch($"b/.../c/d.cs")); 180Assert.Throws<ArgumentNullException>(() => glob.IsMatch(null)); 192Assert.False(glob.IsMatch(((char)i).ToString())); 203Assert.False(glob.IsMatch(invalidFileChar.ToString())); 215Assert.True(glob.IsMatch("\\")); 218Assert.False(glob.IsMatch("/")); 223Assert.False(glob.IsMatch("\\")); 226Assert.False(glob.IsMatch("/")); 235Assert.True(glob.IsMatch("abc")); 245Assert.False(glob.IsMatch("acd")); 253Assert.False(glob.IsMatch("B")); 263Assert.True(glob.IsMatch(string.Empty)); 273Assert.True(glob.IsMatch(string.Empty)); 283Assert.False(glob.IsMatch(string.Empty)); 293Assert.True(glob.IsMatch(illegalSpec)); 308Assert.True(glob.IsMatch(stringToMatch)); 312Assert.False(glob.IsMatch(stringToMatch)); 326Assert.True(glob.IsMatch(@"../x/d13/../../x/d12/d23/../a.cs")); 327Assert.False(glob.IsMatch(@"../x/d13/../x/d12/d23/../a.cs")); 351Assert.True(glob.IsMatch(stringToMatch));