diff --git a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/Requests/TreeNodeFilterTests.cs b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/Requests/TreeNodeFilterTests.cs index 928fb83abc..a5b341f5a1 100644 --- a/test/UnitTests/Microsoft.Testing.Platform.UnitTests/Requests/TreeNodeFilterTests.cs +++ b/test/UnitTests/Microsoft.Testing.Platform.UnitTests/Requests/TreeNodeFilterTests.cs @@ -80,21 +80,6 @@ public void OrExpression_WorksForSinglePathSegmentInsideParentheses() Assert.IsFalse(filter.MatchesFilter("/A/B/C/MyTest3", new PropertyBag())); } - [TestMethod] - public void LiteralSegment_RequiresWildcardToMatchNodesWithAdditionalSuffix() - { - // Note: This documents a current limitation that often surprises users. - // Path segments are matched against an anchored regex (^value$), so a literal - // like 'MyTest1' will NOT match a node whose actual ID is 'MyTest1()' (e.g. when - // a framework appends parameter/method-signature info to the displayed name). - // Users observing this typically need to add a wildcard: '/*/*/*/(MyTest1*|MyTest2*)'. - // See https://github.com/microsoft/testfx/issues/7300 for the user-facing report. - TreeNodeFilter filter = new("/*/*/*/(MyTest1|MyTest2)"); - - Assert.IsFalse(filter.MatchesFilter("/A/B/C/MyTest1()", new PropertyBag())); - Assert.IsFalse(filter.MatchesFilter("/A/B/C/MyTest2()", new PropertyBag())); - } - [TestMethod] public void FullPathOrInsideParenthesizedExpressions_IsNotSupported_ThrowsActionableMessage() {