Skip to content

Commit

Permalink
Modify Rule S2699: Fix Typos (#3482)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdschbrt authored Jan 26, 2024
1 parent 488de63 commit 5c058a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules/S2699/csharp/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ By enforcing the presence of assertions, this rule aims to enhance the reliabili

Test methods that include a call to a custom assertion method will not raise any issues.

== How to fix it
=== How to fix it

To address this issue, you should include assertions to validate the expected behavior.
Choose an appropriate assertion method provided by your testing framework (such as MSTest, NUnit, xUnit) or select a suitable assertion library like FluentAssertions, NFluent, NSubstitute, or Shouldly.
Expand Down Expand Up @@ -68,7 +68,7 @@ public static class Validator
public class AssertionMethodAttribute : Attribute { }
----

== Hot to fix it in MSTest
== How to fix it in MSTest

=== Code examples

Expand Down Expand Up @@ -97,7 +97,7 @@ public void Add_SingleNumber_ReturnsSameNumber()
}
----

== Hot to fix it in NUnit
== How to fix it in NUnit

=== Code examples

Expand Down Expand Up @@ -126,7 +126,7 @@ public void Add_SingleNumber_ReturnsSameNumber()
}
----

== Hot to fix it in xUnit
== How to fix it in xUnit

=== Code examples

Expand Down

0 comments on commit 5c058a0

Please sign in to comment.