Skip to content

Commit 1a28fac

Browse files
authored
Merge pull request #3894 from scout208/patch-3
Update unit-testing-visual-csharp-code-in-a-store-app.md
2 parents 11401ea + 8ae8a69 commit 1a28fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/test/unit-testing-visual-csharp-code-in-a-store-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ You have set up the test and the code projects, and verified that you can run te
161161
{
162162
double expected = v;
163163
double actual = rooter.SquareRoot(v*v);
164-
double tolerance = ToleranceHelper(expected);
164+
double tolerance = expected/1000;
165165
Assert.AreEqual(expected, actual, tolerance);
166166
}
167167
}
@@ -318,4 +318,4 @@ Note that the `RangeTest` method hard codes the denominator of the `tolerance` v
318318
2. Choose **Run All** to test the refactored method and make sure that you haven't introduced an error.
319319

320320
> [!NOTE]
321-
> If you add a helper method to a test class that you don't want to appear in **Test Explorer**, do not add the <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute> attribute to the method.
321+
> If you add a helper method to a test class that you don't want to appear in **Test Explorer**, do not add the <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute> attribute to the method.

0 commit comments

Comments
 (0)