Skip to content

Two fixes to code samples #1430

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

Merged
merged 1 commit into from
Aug 23, 2018
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ Test run parameters provide a way to define variables and values that are availa
public void HomePageTest()
{
string appURL = TestContext.Properties["webAppUrl"];
}
```

To use test run parameters, add a private <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestContext> field and a public <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestContext> property to your test class.
Expand All @@ -228,7 +229,7 @@ To use test run parameters, add a private <xref:Microsoft.VisualStudio.TestTools
<AssemblyResolution>
<Directory Path="D:\myfolder\bin\" includeSubDirectories="false"/>
</AssemblyResolution>
</MSTest
</MSTest>
```

These settings are specific to the test adapter that runs test methods that have the <xref:Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute> attribute.
Expand All @@ -249,4 +250,4 @@ These settings are specific to the test adapter that runs test methods that have
## See also

- [Customize code coverage analysis](../test/customizing-code-coverage-analysis.md)
- [Visual Studio test task (VSTS)](/vsts/pipelines/tasks/test/vstest?view=vsts)
- [Visual Studio test task (VSTS)](/vsts/pipelines/tasks/test/vstest?view=vsts)