Skip to content

Commit 7ac030b

Browse files
committed
test: allow help without descriptions
1 parent e66a107 commit 7ac030b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/System.CommandLine.Tests/Utility/AssertionExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public static AndConstraint<StringCollectionAssertions<IEnumerable<string>>> BeE
4747
}
4848

4949
public static AndConstraint<StringAssertions> ShowHelp(this StringAssertions output) =>
50-
output.Subject.Should().Match("*Description:*Usage:*");
50+
output.Subject.Should().Contain("Usage:");
5151

5252
public static AndConstraint<StringAssertions> NotShowHelp(this StringAssertions output) =>
53-
output.Subject.Should().NotMatch("*Description:*Usage:*");
54-
}
53+
output.Subject.Should().NotContain("Usage:");
54+
}

0 commit comments

Comments
 (0)