From 57bfe65f33fba2f8eab7e0ef24fc2f9145defe66 Mon Sep 17 00:00:00 2001 From: thecoolone <35124383+snehansh@users.noreply.github.com> Date: Thu, 6 Nov 2025 19:14:02 +0530 Subject: [PATCH] Fix reference to IsPrime method in unit testing docs Corrected the reference to the method in the PrimeService.cs file for clarity. --- docs/core/testing/unit-testing-csharp-with-nunit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/unit-testing-csharp-with-nunit.md b/docs/core/testing/unit-testing-csharp-with-nunit.md index 5f35fd312de4c..8e5e995eaf354 100644 --- a/docs/core/testing/unit-testing-csharp-with-nunit.md +++ b/docs/core/testing/unit-testing-csharp-with-nunit.md @@ -176,7 +176,7 @@ Instead of creating new tests, apply this attribute to create a single data-driv [!code-csharp[Sample_TestCode](~/samples/snippets/core/testing/unit-testing-using-nunit/csharp/PrimeService.Tests/PrimeService_IsPrimeShould.cs?name=Sample_TestCode)] -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: +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: ```csharp if (candidate < 2)