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