I have following test
[Theory(DisplayName = nameof(GenerativeAnswersResponseAsync))]
[InlineData("GenerativeAnswers1", GenerativeAnswers_InDomainTest, false, true)]
[InlineData("GenerativeAnswers2", GenerativeAnswers_OutDomainTest, false, true)]
How can I set priority so that "GenerativeAnswers1" is executed first?
Attributes such as
InlineDataon a method don't have a guaranteed relative order, so they'll arrive from the reflection APIs in the order the compiler fed them into the assembly.If you want to control the order, you'll have to do that via
MemberData,ClassDataorTheoryData