We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e66a107 commit 7ac030bCopy full SHA for 7ac030b
1 file changed
src/System.CommandLine.Tests/Utility/AssertionExtensions.cs
@@ -47,8 +47,8 @@ public static AndConstraint<StringCollectionAssertions<IEnumerable<string>>> BeE
47
}
48
49
public static AndConstraint<StringAssertions> ShowHelp(this StringAssertions output) =>
50
- output.Subject.Should().Match("*Description:*Usage:*");
+ output.Subject.Should().Contain("Usage:");
51
52
public static AndConstraint<StringAssertions> NotShowHelp(this StringAssertions output) =>
53
- output.Subject.Should().NotMatch("*Description:*Usage:*");
54
-}
+ output.Subject.Should().NotContain("Usage:");
+}
0 commit comments