-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiki on ITestCaseData seems to be out of sync with the code #39
Comments
This appears to work fine in NUnit 2.x, but it's broken in 3.2.1. |
@blachniet We accepted this as a documentation bug because the docs are incorrect, reflecting the V2 behavior of the interface. I mention that so you will understand that this issue won't result in anything changing in the NUnit codebase. Currently, the quoted statement "...any object implementing ITestCaseData..." is incorrect for NUnit V3. There's no particular reason an extension can't return the classes we provide internally in the framework, or extend them, rather than creating their own implementation from scratch. |
Ok, thank you for clarifying that. Is |
If you want the fluent interface, yes. But if it's an extension that provides data it probably makes more sense to derive from it's base class, NUnit.Framework.Internal.TestCaseParameters. That's what all the NUnit attributes that provide test cases use. |
I have updated the documentation for |
The wiki (https://github.com/nunit/docs/wiki/TestCaseData) reads:
However, when I create a custom object implementing the
ITestCaseData
interface, I get:The text was updated successfully, but these errors were encountered: