Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbeuk committed Jun 23, 2021
2 parents 144c438 + 8ff3bef commit edb9946
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,14 @@ public async Task Scenario1(ScenarioContext scenario) {
if (!database.Created) {
scenario.Skip("Was not able to create a test database...");
}
else {
await scenario.Fact("Ensure that we start with 0 users", async () => {
if (....) {
scenario.Skip("We're skipping this test because of... reasons");
}

await scenario.Fact("Ensure that we start with 0 users", async () => {
if (....) {
scenario.Skip("We're skipping this test because of... reasons");
}

Assert.Equal(0, await database.Users.CountAsync());
});
Assert.Equal(0, await database.Users.CountAsync());
});
}
}
```
2 changes: 1 addition & 1 deletion samples/AwesomeCalculator/AwesomeCalculator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="ScenarioTests.XUnit" Version="0.5.1" />
<PackageReference Include="ScenarioTests.XUnit" Version="0.6.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion samples/DbIntegrationSample/DbIntegrationSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="EntityFrameworkCore.Triggered.Extensions" Version="2.3.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="ScenarioTests.XUnit" Version="0.5.1" />
<PackageReference Include="ScenarioTests.XUnit" Version="0.6.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit edb9946

Please sign in to comment.