Subclasses of ExplicitAttribute ignored

Bug #613031 reported by Travis Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Low
Charlie Poole

Bug Description

Subclasses of ExplicitAttribute are ignored. Example:

public class NotYetImplementedAttribute : ExplicitAttribute { }

[TestFixture, Explicit] public class Test1 { }

Is ignored, where

[TestFixture, NotYetImplemented] public class Test1 { }

Is executed as if no Explicit attribute has been applied.

While not a huge deal, having these attributes strongly typed does provide value when reading code and searching for instances of a given attribute.

Thanks!

For initial discussion: http://groups.google.com/group/nunit-discuss/browse_thread/thread/81457a3067919396/e1ff82b037bb6fcf

Tags: framework easy

Related branches

Changed in nunitv2:
status: New → Triaged
importance: Undecided → Low
tags: added: easy
Revision history for this message
Travis Smith (legomaster) wrote :

See attached diff.

Revision history for this message
Travis Smith (legomaster) wrote :

I should add this is against v.2.5.7.10213.

Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
milestone: none → 2.5.8
Revision history for this message
Charlie Poole (charlie.poole) wrote :

Used patch provided by Travis. Applies to both ExplicitAttribute and IgnoreAttribute

Changed in nunitv2:
status: Triaged → Fix Committed
tags: added: framework
Changed in nunitv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.