I created few tests in XUnit (.NET CORE 5) Here is my code:
public class SerialTest
{
[Fact]
public async Task Test1()
{
await Task.Delay(TimeSpan.FromSeconds(5));
Assert.True(true);
}
[Fact]
public async Task Test2()
{
await Task.Delay(TimeSpan.FromSeconds(5));
Assert.True(true);
}
}
This tests should work serially - Test1 should be finished before Test 2. But it's not happening.
This is how its working:
How to change it?