4 implementations of IsMatch
Microsoft.Build (4)
Globbing\CompositeGlob.cs (2)
62
public bool
IsMatch
(string stringToMatch)
150
public bool
IsMatch
(string stringToMatch) => false;
Globbing\MSBuildGlob.cs (1)
92
public bool
IsMatch
(string stringToMatch)
Globbing\MSBuildGlobWithGaps.cs (1)
74
public bool
IsMatch
(string stringToMatch)
23 references to IsMatch
Microsoft.Build (4)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
843
return s => glob.
IsMatch
(s);
Globbing\CompositeGlob.cs (1)
67
return _globs.Any(static (glob, str) => glob.
IsMatch
(str), stringToMatch);
Globbing\MSBuildGlobWithGaps.cs (2)
76
return MainGlob.
IsMatch
(stringToMatch) && !Gaps.
IsMatch
(stringToMatch);
Microsoft.Build.Engine.OM.UnitTests (4)
Definition\Project_Tests.cs (4)
3743
uberGlob.
IsMatch
(matchingString).ShouldBeTrue();
3748
uberGlob.
IsMatch
(nonMatchingString).ShouldBeFalse();
3776
globResult.MsBuildGlob.
IsMatch
("a.cs").ShouldBeTrue();
3777
globResult.MsBuildGlob.
IsMatch
(absoluteFile).ShouldBeTrue();
Microsoft.Build.Engine.UnitTests (15)
Evaluation\ItemSpec_Tests.cs (14)
34
Assert.True(itemSpecGlob.
IsMatch
("a"));
35
Assert.True(itemSpecGlob.
IsMatch
("bar"));
36
Assert.True(itemSpecGlob.
IsMatch
("car"));
37
Assert.True(itemSpecGlob.
IsMatch
("d"));
38
Assert.True(itemSpecGlob.
IsMatch
("e"));
54
itemSpecFromRelative.ToMSBuildGlob().
IsMatch
("s.cs").ShouldBeTrue();
55
itemSpecFromRelative.ToMSBuildGlob().
IsMatch
(absoluteSpec).ShouldBeTrue();
57
itemSpecFromAbsolute.ToMSBuildGlob().
IsMatch
("s.cs").ShouldBeTrue();
58
itemSpecFromAbsolute.ToMSBuildGlob().
IsMatch
(absoluteSpec).ShouldBeTrue();
74
Assert.True(itemSpecGlob.
IsMatch
("a"));
75
Assert.True(itemSpecGlob.
IsMatch
("bar"));
76
Assert.True(itemSpecGlob.
IsMatch
("car"));
77
Assert.True(itemSpecGlob.
IsMatch
("d"));
78
Assert.True(itemSpecGlob.
IsMatch
("e"));
Globbing\CompositeGlob_Tests.cs (1)
146
Assert.False(composite.
IsMatch
(""));