Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown fixes #531

Merged
merged 4 commits into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion documentation/NUnit1030.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void IsNUnit(int n)

Match the type of parameters between the test data and the test method.


<!-- start generated config severity -->
## Configure severity

Expand Down
2 changes: 1 addition & 1 deletion documentation/NUnit2046.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Assert.That(array.Length, Is.EqualTo(1));
Assert.That(array, Has.Length.EqualTo(1));
```

The first gives: `Expected: 1, But was: 2`, the second: `Expected: property Length equal to 1, But was: 2`
The first gives: `Expected: 1, But was: 2`, the second: `Expected: property Length equal to 1, But was: 2`
making it clear we talking about number of elements, not just a number.

The next example:
Expand Down
3 changes: 2 additions & 1 deletion documentation/NUnit3001.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This rule check diagnostics reported by the CS8601-CS8607 and CS8629 compiler er
`CS8602: Dereference of a possibly null reference.`

It then checks the previous statements for one of:

* `Assert.NotNull(...)`
* `Assert.IsNotNull(...)`
* `Assert.That(..., Is.Not.Null)`
Expand All @@ -27,6 +28,7 @@ If found, the compiler error is suppressed.
The rule also covers `CS8629: Nullable value type may be null`

In this case, the previous statement is allowed to be one of:

* `Assert.That(...HasValue)`
* `Assert.That(...HasValue, Is.True)`
* `Assert.True(...HasValue)`
Expand Down Expand Up @@ -119,4 +121,3 @@ This is currently not working. Waiting for [Roslyn](https://github.com/dotnet/ro
dotnet_diagnostic.NUnit3001.severity = none
```
<!-- end generated config severity -->

1 change: 0 additions & 1 deletion documentation/NUnit3002.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ This is currently not working. Waiting for [Roslyn](https://github.com/dotnet/ro
dotnet_diagnostic.NUnit3002.severity = none
```
<!-- end generated config severity -->