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)
147
Assert.False(glob.
IsMatch
($"b/.../c/d.cs"));
177
Assert.Throws<ArgumentNullException>(() => glob.
IsMatch
(null));
187
Assert.False(glob.
IsMatch
(invalidPathChar.ToString()));
197
Assert.False(glob.
IsMatch
(invalidFileChar.ToString()));
209
Assert.True(glob.
IsMatch
("\\"));
212
Assert.False(glob.
IsMatch
("/"));
217
Assert.False(glob.
IsMatch
("\\"));
220
Assert.False(glob.
IsMatch
("/"));
229
Assert.True(glob.
IsMatch
("abc"));
239
Assert.False(glob.
IsMatch
("acd"));
247
Assert.False(glob.
IsMatch
("B"));
257
Assert.True(glob.
IsMatch
(string.Empty));
267
Assert.True(glob.
IsMatch
(string.Empty));
277
Assert.False(glob.
IsMatch
(string.Empty));
287
Assert.True(glob.
IsMatch
(illegalSpec));
302
Assert.True(glob.
IsMatch
(stringToMatch));
306
Assert.False(glob.
IsMatch
(stringToMatch));
320
Assert.True(glob.
IsMatch
(@"../x/d13/../../x/d12/d23/../a.cs"));
321
Assert.False(glob.
IsMatch
(@"../x/d13/../x/d12/d23/../a.cs"));
345
Assert.True(glob.
IsMatch
(stringToMatch));