For NUnitAddIn-0.6.365d, if the method that is marked
as the TestFixtureSetup is not public, the method will
not be called and a null reference exception will be
thrown. This is not the case for NUnit GUI and for the
previous version of the Addin I was using NUnitAddin-
0.5.120d.
System.NullReferenceException: test
Server stack trace:
at NUnit.Core.RemoteTestRunner.Run(EventListener
listener, Test[] tests) at
Unit.Core.RemoteTestRunner.Run(EventListener
listener, String[] testNames) at
UnitAddin.NUnit.TestRunner.NUnitTestRunner.Run
(ITestListener testListener, ITraceListener traceListener,
String assemblyPath, String ambiguousTestPath) at
System.Runtime.Remoting.Messaging.StackBuilderSink.
PrivateProcessMessage(MethodBase mb, Object[] args,
Object server, Int32 methodPtr, Boolean
fExecuteInContext, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.
SyncProcessMessage(IMessage msg, Int32 methodPtr,
Boolean fExecuteInContext)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleRet
urnMessage(IMessage reqMsg, IMessage retMsg) at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInv
oke(MessageData& msgData, Int32 type)
at NUnitAddin.TestRunner.Framework.ITestRunner.Run
(ITestListener testListener, ITraceListener traceListener,
String assemblyPath, String testPath) at
NUnitAddin.TestRunner.Runner.Run()
0 succeeded, 1 failed, 0 skipped, took 0.00 seconds.
Logged In: YES
user_id=216187
the same is true for the standard [SetUp] and [TearDown]
methods. if these methods are marked as protected, you
receive the same failure.