nunit-vs-adapter
nunit-vs-adapter copied to clipboard
Support tests that are not methods
I have written an addin which allows me to write field tests instead of tests being methods. I can navigate to where the assertions failed just fine due to console output and stack traces, but there is no source information available for passed tests or failures (in the way NUnit supplies). I believe the issue may be here: http://bazaar.launchpad.net/~nunit-vs-team/nunit-vs-adapter/trunk/view/head:/src/NUnitTestAdapter/NavigationData.cs
It calls:
var method = definingType.GetMethod(methodName); if (method == null) return null;
Which will always return null for my tests. Would changing the call to definingType.GetMember work to support both methods and fields?
What about creating another function which can locate non-methods tests?
From https://bugs.launchpad.net/nunit-vs-adapter/+bug/1177434