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

Notification

Icon
Error

Assembly level attributes
CourtJesterBob
#1 Posted : Tuesday, December 31, 2013 3:22:58 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/2/2012(UTC)
Posts: 13
Location: Beachwood, OH

I see in the documentation that I can use the ExclusivelyUses attribute at the assembly level, but I don't see anywhere that shows exactly how to do this. I know I can decorate a test or test fixture with this, but if I have many text fixtures in my project with multiple tests in each fixture and I am not sure where to put the ExclusivelyUses attribute so it applies assembly wide.

Bob
Remco
#2 Posted : Tuesday, December 31, 2013 11:19:00 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Bob -

You'd use this the same way as other attributes that are specified in AssemblyInfo.cs, for example:

[assembly: NCrunch.Framework.ExclusivelyUses("ResourceName")]

.. This can be applied in any .cs file, but I'd recommend AssemblyInfo.cs as this is more conventional in C#.


Cheers,

Remco
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download