You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does xUnit support something like theory attribute but then at the class level which should automatically apply to all the test methods in the test class?
My system has 4 different role. Each test method should be tested for each role. I currently accomplish this by using the Theory attribute above the test method.
Right now I have to decorate each test method individually with the Theory attribute. It would be much better if I could just decorate my classes with the Theory attribute and if a method needs to override the Theory attribute at the class level it should provide its own Theory attribute.
The text was updated successfully, but these errors were encountered:
onkarjit
changed the title
Something like theory attribute at class level?
Theory-like attribute at class level?
Nov 11, 2019
If I understand ClassFixture correctly it won't execute the same test method multiple times for different roles that I have, like how the theory attribute does.
Does xUnit support something like theory attribute but then at the class level which should automatically apply to all the test methods in the test class?
My system has 4 different role. Each test method should be tested for each role. I currently accomplish this by using the Theory attribute above the test method.
Right now I have to decorate each test method individually with the Theory attribute. It would be much better if I could just decorate my classes with the Theory attribute and if a method needs to override the Theory attribute at the class level it should provide its own Theory attribute.
The text was updated successfully, but these errors were encountered: