Comment 3 for bug 1208356

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 1208356] Re: Properties are not applied for parameterized tests

You're probably right about the docs. We didn't originally include the info
because it seemed "obvious" based on how .NET applies attributes - I guess
only "obvious" to the folks who wrote the code.

The change you suggest is possible. It's also logical for categories: that
is, putting a fixture in a category means putting all the test cases in
that category. However, it's not universally applicable to all attributes.
What this means is that NUnit would have to specify which attributes, when
placed on a method, apply to the suite that is created and which ones apply
to the individual test cases. We could probably do this by use of an
interface or alternatively by an attribute on the attribute definition.

I explain the complexity of the change so you'll understand why I'm
changing this to the NUnit 3.0 project!

Charlie

On Mon, Aug 5, 2013 at 9:01 AM, Dunemaster <email address hidden> wrote:

> Well, I think applying the property to all test cases is reasonable
> behavior.
> Otherwise, mentioning in [TestCase] and [Property] documentation that they
> do not work together will be a good thing, may it will save an hour for
> several people
>
> --
> You received this bug notification because you are subscribed to NUnit
> Extended Testing Platform.
> https://bugs.launchpad.net/bugs/1208356
>
> Title:
> Properties are not applied for parameterized tests
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/1208356/+subscriptions
>