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