Sorry for the repeated noise, I seem to have been right with my last comment. I'll attach a small testcase which leads to
stefanb@brick:/tmp$ mono NUnit-2.6.3/bin/nunit-console.exe assertthrows.dll -basepath=NUnit-2.6.3/bin/
NUnit-Console version 2.6.3.13278 (Preview)
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
ProcessModel: Default DomainUsage: Single
Execution Runtime: mono-3.5
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for NUnit.Framework.AsyncInvocationRegion at (wrapper xdomain-invoke) NUnit.Core.RemoteTestRunner:Load (NUnit.Core.TestPackage)
at NUnit.Util.TestDomain.Load (NUnit.Core.TestPackage package) [0x00000] in <filename unknown>:0
Exception rethrown at [1]:
---> System.ArgumentNullException: Argument cannot be null.
Parameter name: method
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0
at NUnit.Framework.AsyncInvocationRegion..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x00000] in <filename unknown>:0
Sorry for the repeated noise, I seem to have been right with my last comment. I'll attach a small testcase which leads to
stefanb@brick:/tmp$ mono NUnit-2. 6.3/bin/ nunit-console. exe assertthrows.dll -basepath= NUnit-2. 6.3/bin/
NUnit-Console version 2.6.3.13278 (Preview)
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Unix 3.5.0.41
CLR Version: 2.0.50727.1433 ( Mono 3.5 ( 2.10.8.1 (Debian 2.10.8.1-5ubuntu1) ) )
ProcessModel: Default DomainUsage: Single TypeInitializat ionException: An exception was thrown by the type initializer for NUnit.Framework .AsyncInvocatio nRegion at (wrapper xdomain-invoke) NUnit.Core. RemoteTestRunne r:Load (NUnit. Core.TestPackag e) TestDomain. Load (NUnit. Core.TestPackag e package) [0x00000] in <filename unknown>:0 ArgumentNullExc eption: Argument cannot be null. Delegate. CreateDelegate (System.Type type, System.Object firstArgument, System. Reflection. MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0 Delegate. CreateDelegate (System.Type type, System. Reflection. MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 Delegate. CreateDelegate (System.Type type, System. Reflection. MethodInfo method) [0x00000] in <filename unknown>:0 .AsyncInvocatio nRegion. .cctor () [0x00000] in <filename unknown>:0 Runtime. Remoting. Proxies. RealProxy. PrivateInvoke (System. Runtime. Remoting. Proxies. RealProxy rp, IMessage msg, System.Exception& exc, System.Object[]& out_args) [0x00000] in <filename unknown>:0
Execution Runtime: mono-3.5
Unhandled Exception:
System.
at NUnit.Util.
Exception rethrown at [1]:
---> System.
Parameter name: method
at System.
at System.
at System.
at NUnit.Framework
--- End of inner exception stack trace ---
at System.