-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marked MarkupMatches as assertion method to help 3rd party with analy…
…zers * Marked MarkupMatches and WaitForAssertion as assertion methods * Updated changelog * Update src/bunit.core/Asserting/AssertionMethodAttribute.cs * Tweaked CHANGELOG, removed AssertionMethod attribute from WaitForAssertion * Removed unused usings Co-authored-by: Pavel Mikula <57188685+pavel-mikula-sonarsource@users.noreply.github.com>
- Loading branch information
1 parent
d966bcb
commit c222cf7
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Bunit.Asserting | ||
{ | ||
/// <summary> | ||
/// Add this attribute to assertion methods to indicate to | ||
/// 3rd party analyzers that the method is an assertion method. | ||
/// See more here: https://rules.sonarsource.com/csharp/RSPEC-2699 | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Method)] | ||
public sealed class AssertionMethodAttribute : Attribute { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters