Nunit3 TestFixtureSource support #1756
Unanswered
tuscias
asked this question in
Questions & Support
Replies: 1 comment
-
Hi, @tuscias! Example: [AllureNUnit]
[AllureParentSuite("Root Suite")]
[TestFixtureSource(nameof(FixtureArgs))]
public class AllureTestFixtureSource
{
private string _word;
private int _num;
public AllureTestFixtureSource(string word, int num)
{
_word = word;
_num = num;
}
static object [] FixtureArgs = {
new object[] { "Question", 1 },
new object[] { "Answer", 42 }
};
[Test]
public void RunTest()
{
Assert.That("Answer", Is.EqualTo(_word));
Assert.That(42, Is.EqualTo(_num));
}
} If that doesn't fit your needs - let me know to discuss on it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was wondering if Allure2 for .NET supports Nunit3 TestFixtureSource attribute (https://docs.nunit.org/articles/nunit/writing-tests/attributes/testfixturesource.html)?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions