Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch.Framework.ExclusivelyUses Inheritance
aboy021
#1 Posted : Wednesday, May 8, 2013 12:44:09 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/24/2013(UTC)
Posts: 19
Location: New Zealand

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Is the ExclusivelyUses attribute inherited?

e.g.

[AttributeUsage (Inherited = True)]
Remco
#2 Posted : Wednesday, May 8, 2013 9:57:02 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,135

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
aboy021
#3 Posted : Thursday, May 9, 2013 1:08:09 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/24/2013(UTC)
Posts: 19
Location: New Zealand

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download