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
While trying to access Author value in TearDown i am getting null value. Do let me know if Property attribute works with TestCaseSource Attribute.
Please find below code:
When you use the attributes on a method with parameters, a property is created on the Test suite, which contains all the individual cases. It was probably a design flaw to do it this way because there is no way for you to easily access those properties. All your test code executes in the context of the individual test case, not the containing suite.
You can, of course, set properties on the individual TestCaseData items returned by your TestCaseSource. It would be a significant but not too difficult change in NUnit to make all property attributes apply to the individual test cases in this situation. Whether it's a breaking change, which must wait until NUnit 4, is a matter for the team to decide.
While trying to access Author value in TearDown i am getting null value. Do let me know if Property attribute works with TestCaseSource Attribute.
Please find below code:
The text was updated successfully, but these errors were encountered: