Re: addin

"Charlie Poole" <[email protected]> Mon, 11 Aug 2008 18:40:23 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <000f01c8fc1c$64df78b0$6401a8c0@ferrari>
Ah! If you were doing a TestCaseBuilder, the suite to which the new test is
being added
would be passed to you and you could look at it's properties. Unfortunately,
that's not
so for a decorator.
 
You'll have to use the passed in MemberInfo and reflect on the type. Use
ReflectedType
to get the proper type in cases where the method is in a base class.
 
Charlike


  _____  

From: Mustafa F [mailto:[email protected]] 
Sent: Monday, August 11, 2008 6:25 PM
To: Charlie Poole
Cc: [email protected]
Subject: Re: [nunit-developer] addin


That would give the properties of an individual test case. What if I want to
access the properties of the testSetup or the fixture. 


On Mon, Aug 11, 2008 at 8:27 PM, Charlie Poole <[email protected]>
wrote:


It's in the Properties of the test...
 
test.Properties["Default"]
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Mustafa
F
Sent: Monday, August 11, 2008 3:20 PM 

To: [email protected]

Subject: [nunit-developer] addin


Hi,
 
i was writing an addin for NUnit. I came accross the named parameter
attribute in the documentation. I used Property("Default","Value")  on the
test fixture. Anyone have an idea on how I can retrieve this value in the
test decorator? The idea is to have a common value for all the tests in the
test fixture.
 
 
Thanks,
Mustafa


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100
<http://moblin-contest.org/redirect.php?banner_id=100&url=/> &url=/
_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer