Skip to content

Commit

Permalink
Update language for xUnit2031 descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Aug 24, 2024
1 parent a0ecf3a commit 5b62de9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xunit.analyzers/Utility/Descriptors.xUnit2xxx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ public static partial class Descriptors
public static DiagnosticDescriptor X2031_AssertSingleShouldUseTwoArgumentCall { get; } =
Diagnostic(
"xUnit2031",
"Do not use single-argument Assert.Single in a filtered collection",
"Do not use Where clause with Assert.Single",
Assertions,
Warning,
"Do not use single-argument call to Assert.Single to check for a single item in a filtered collection. Use two-argument call instead."
"Do not use a Where clause to filter before calling Assert.Single. Use the overload of Assert.Single that accepts a filtering function."
);

// Placeholder for rule X2032
Expand Down

0 comments on commit 5b62de9

Please sign in to comment.