Implemented interface member:
method
IsMatch
Microsoft.Build.Globbing.IMSBuildGlob.IsMatch(System.String)
22 references to IsMatch
Microsoft.Build (2)
Globbing\MSBuildGlob.cs (2)
113/// Similar to <see cref="IsMatch" /> but also provides the match groups for the glob parts 163/// 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)
151Assert.False(glob.IsMatch($"b/.../c/d.cs")); 181Assert.Throws<ArgumentNullException>(() => glob.IsMatch(null)); 193Assert.False(glob.IsMatch(((char)i).ToString())); 204Assert.False(glob.IsMatch(invalidFileChar.ToString())); 216Assert.True(glob.IsMatch("\\")); 219Assert.False(glob.IsMatch("/")); 224Assert.False(glob.IsMatch("\\")); 227Assert.False(glob.IsMatch("/")); 236Assert.True(glob.IsMatch("abc")); 246Assert.False(glob.IsMatch("acd")); 254Assert.False(glob.IsMatch("B")); 264Assert.True(glob.IsMatch(string.Empty)); 274Assert.True(glob.IsMatch(string.Empty)); 284Assert.False(glob.IsMatch(string.Empty)); 294Assert.True(glob.IsMatch(illegalSpec)); 309Assert.True(glob.IsMatch(stringToMatch)); 313Assert.False(glob.IsMatch(stringToMatch)); 327Assert.True(glob.IsMatch(@"../x/d13/../../x/d12/d23/../a.cs")); 328Assert.False(glob.IsMatch(@"../x/d13/../x/d12/d23/../a.cs")); 352Assert.True(glob.IsMatch(stringToMatch));