Skip to content

Instantly share code, notes, and snippets.

@TsuyoshiUshio
Created March 20, 2020 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TsuyoshiUshio/45f141aa58848679814168e450f46037 to your computer and use it in GitHub Desktop.
Save TsuyoshiUshio/45f141aa58848679814168e450f46037 to your computer and use it in GitHub Desktop.
Serially exclusively
[CollectionDefinition("Non-Parallel Collection", DisableParallelization = true)]
public class NonParallelCollectionDefinitionClass
{
}
[Collection("Non-Parallel Collection")]
public class SerialTest
{
[Fact]
public async Task Test10()
{
await Task.Delay(TimeSpan.FromSeconds(5));
Assert.True(true);
}
[Fact]
public async Task Test11()
{
await Task.Delay(TimeSpan.FromSeconds(5));
Assert.True(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment