views:

41

answers:

1

In both my NUnit SetUp and TearDown methods, I need to retrieve the MethodInfo of the test that is about to be run or has been run. Is this possible? I'm using NUnit 2.5.

Motivation: I would like to be able to retrieve, via Reflection, attributes attached to the test method.

A: 

Looks like I'm not the only one who can't figure this one out. I'll probably have to create an Test Decorator NUnit Addin to do what I want - it should have access to the MethodInfo associated with the test method.

Jordan