Closed sarowa36 closed 12 months ago
Thanks for the detailed report! I'll take a look at this later today.
I'm not able to reproduce this. Here's the class I'm using:
[TestCaseOrderer(PriorityOrderer.Name, PriorityOrderer.Assembly)]
[DefaultPriority(0)]
public class TestClass
{
[Fact, PriorityAttribute(10)]
public void Foo()
{
Console.WriteLine("third");
}
[Fact, PriorityAttribute(-10)]
public void Bar()
{
Console.WriteLine("first");
}
[Fact]
public void Baz()
{
Console.WriteLine("second");
}
}
All three tests run for me, in the correct order. Is it possible you have some filter on your test runner that is preventing your Delete()
test from running? Are you able to put together a test class that reproduces the issue that doesn't have a dependency on your server code?
Oh sorry mate thats error about my spaggetti code.
Hello i have problem about your library. when i use defaultpriority attribute some method who have bigger priority than defaultpriority value its doesnt work/trigger.
xunit version: 2.42 .net version: 7.0.4