Skip to content

Commit 6e6b9ec

Browse files
authored
Fix reference to IsPrime method in unit testing docs (#49648)
Corrected the reference to the method in the PrimeService.cs file for clarity.
1 parent 93ab90a commit 6e6b9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/testing/unit-testing-csharp-with-nunit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Instead of creating new tests, apply this attribute to create a single data-driv
176176

177177
[!code-csharp[Sample_TestCode](~/samples/snippets/core/testing/unit-testing-using-nunit/csharp/PrimeService.Tests/PrimeService_IsPrimeShould.cs?name=Sample_TestCode)]
178178

179-
Run `dotnet test`, and two of these tests fail. To make all of the tests pass, change the `if` clause at the beginning of the `Main` method in the *PrimeService.cs* file:
179+
Run `dotnet test`, and two of these tests fail. To make all of the tests pass, change the `if` clause at the beginning of the `IsPrime` method in the *PrimeService.cs* file:
180180

181181
```csharp
182182
if (candidate < 2)

0 commit comments

Comments
 (0)