Is the ExclusivelyUses attribute inherited?
e.g.
[AttributeUsage (Inherited = True)]
Remco NCrunch Developer
#4125
08 May 2013 09:57 UTC
The declaration for ExclusivelyUsesAttribute doesn't use the AttributeUsage marker for inheritance, but NCrunch does search the entire inheritance structure for it ... so in practice, yes. A test superclass marked with this attribute should have it automatically specified for all subclasses.
Excellent, thanks for the clarification.
It's handy on an integration test base class I've got, and what you're telling me has helped me track down an issue. Thanks.
It's handy on an integration test base class I've got, and what you're telling me has helped me track down an issue. Thanks.
Post a reply
Log in to reply.