Skip to content

Commit

Permalink
docs(dotnet): make access modifiers consistent (#16331)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Aug 7, 2022
1 parent 52f9e64 commit cf2c964
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/src/intro-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace PlaywrightTests;
public class Tests : PageTest
{
[Test]
async public Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
public async Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
{
await Page.GotoAsync("https://playwright.dev");

Expand Down Expand Up @@ -133,7 +133,7 @@ namespace PlaywrightTests;
public class UnitTest1 : PageTest
{
[TestMethod]
async public Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
public async Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
{
await Page.GotoAsync("https://playwright.dev");

Expand Down
18 changes: 9 additions & 9 deletions docs/src/test-runners-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace PlaywrightTests;
public class MyTest : PageTest
{
[Test]
async public Task ShouldHaveTheCorrectSlogan()
public async Task ShouldHaveTheCorrectSlogan()
{
await Page.GotoAsync("https://playwright.dev");
await Expect(Page.Locator("text=enables reliable end-to-end testing for modern web apps")).ToBeVisibleAsync();
Expand Down Expand Up @@ -99,7 +99,7 @@ dotnet test
You can also choose specifically which tests to run, using the [filtering capabilities](https://docs.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=nunit):

```bash
dotnet test --filter "Name~ShouldAdd"
dotnet test --filter "Name~Slogan"
```

### Running NUnit tests in Parallel
Expand Down Expand Up @@ -145,7 +145,7 @@ public class MyTest : PageTest

### Customizing [Browser]/launch options

[Browser]/launch options can be override either using a run settings file or by setting the run settings options directly via the
[Browser]/launch options can be overridden either using a run settings file or by setting the run settings options directly via the
CLI. See the following example:

```xml
Expand Down Expand Up @@ -205,7 +205,7 @@ If you want to enable debugging, you can set the `DEBUG` variable to `pw:api` as

### Base NUnit classes for Playwright

There are few base classes available to you in `Microsoft.Playwright.NUnit` namespace:
There are a few base classes available to you in `Microsoft.Playwright.NUnit` namespace:

|Test |Description|
|--------------|-----------|
Expand Down Expand Up @@ -242,14 +242,14 @@ namespace PlaywrightTests;
public class UnitTest1: PageTest
{
[TestMethod]
async public Task ShouldHaveTheCorrectSlogan()
public async Task ShouldHaveTheCorrectSlogan()
{
await Page.GotoAsync("https://playwright.dev");
await Expect(Page.Locator("text=enables reliable end-to-end testing for modern web apps")).ToBeVisibleAsync();
}

[TestMethod]
async public Task ShouldHaveTheCorrectTitle()
public async Task ShouldHaveTheCorrectTitle()
{
await Page.GotoAsync("https://playwright.dev");
var title = Page.Locator(".navbar__inner .navbar__title");
Expand Down Expand Up @@ -299,7 +299,7 @@ dotnet test
You can also choose specifically which tests to run, using the [filtering capabilities](https://docs.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest):

```bash
dotnet test --filter "Name~ShouldAdd"
dotnet test --filter "Name~Slogan"
```

### Running MSTest tests in Parallel
Expand Down Expand Up @@ -351,7 +351,7 @@ public class UnitTest1 : PageTest

### Customizing [Browser]/launch options

[Browser]/launch options can be override either using a run settings file or by setting the run settings options directly via the
[Browser]/launch options can be overridden either using a run settings file or by setting the run settings options directly via the
CLI. See the following example:

```xml
Expand Down Expand Up @@ -414,7 +414,7 @@ If you want to enable debugging, you can set the `DEBUG` variable to `pw:api` as

### Base MSTest classes for Playwright

There are few base classes available to you in `Microsoft.Playwright.MSTest` namespace:
There are a few base classes available to you in `Microsoft.Playwright.MSTest` namespace:

|Test |Description|
|--------------|-----------|
Expand Down
4 changes: 2 additions & 2 deletions docs/src/writing-tests-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace PlaywrightTests;
public class Tests : PageTest
{
[Test]
async public Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
public async Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
{
await Page.GotoAsync("https://playwright.dev");

Expand Down Expand Up @@ -61,7 +61,7 @@ namespace PlaywrightTests;
public class UnitTest1 : PageTest
{
[TestMethod]
async public Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
public async Task HomepageHasPlaywrightInTitleAndGetStartedLinkLinkingtoTheIntroPage()
{
await Page.GotoAsync("https://playwright.dev");

Expand Down

0 comments on commit cf2c964

Please sign in to comment.