Re: addin
"Mustafa F" <[email protected]> Mon, 11 Aug 2008 21:50:20 -0400
| Newsgroups | gmane.comp.windows.dotnet.nunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Oh ok. I though I would have to use the TestCaseBuilder. However, i was able to get the property from the FixtureType.GetCustomProperties() function. Not the most elegant piece of good, so I might just end up writing the testcasebuilder. Thanks, Mustafa On Mon, Aug 11, 2008 at 9:40 PM, Charlie Poole <[email protected]>wrote: > 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&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 > > ------------------------------------------------------------------------- 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