Skip to content

Update unit-testing-visual-csharp-code-in-a-store-app.md #3893

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

Closed
wants to merge 1 commit into from
Closed
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
17 changes: 10 additions & 7 deletions docs/test/unit-testing-visual-csharp-code-in-a-store-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,17 @@ This article also creates a single Visual Studio solution and separate projects
3. Add the following code to the Rooter class *Rooter.cs* file:

```csharp
public Rooter()
public class Rooter
{
}
public Rooter()
{
}

// estimate the square root of a number
public double SquareRoot(double x)
{
return 0.0;
// estimate the square root of a number
public double SquareRoot(double x)
{
return 0.0;
}
}
```

Expand Down Expand Up @@ -318,4 +321,4 @@ Note that the `RangeTest` method hard codes the denominator of the `tolerance` v
2. Choose **Run All** to test the refactored method and make sure that you haven't introduced an error.

> [!NOTE]
> 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.
> 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.