I'm having a hard time building NUnit trunk on Mono 2.10 - this would be Mono 4.0 and things aren't quite where the build system expects them.
What happens is that the type constructor for AsyncInvocationRegion is triggered in line 579 of Assert - the framework assembly I use has been built for Windows - but in Mono the Exception class has no PreserveStackTrace method. The branch I've just linked falls back to a no-op if the PreserveStackTrace isn't found at runtime. TBH I'm not sure this is the best way to fix it - in particular since I don't have a Windows environment at hand right now - so I don't claim my trivial change would fix anything. -- You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2. https://bugs.launchpad.net/bugs/1235891 Title: Proposed 2.6.3 release: ArgumentNullException in NUnit.Framework.AsyncInvocationRegion..cctor Status in NUnit V2 Test Framework: New Bug description: I've built and run the tests of XMLUnit's trunk against the proposed 2.6.3 release assembly, all tests pass with 2.6.2. At least on Mono (2.10) on Linux I now see an ArgumentNullException - haven't tried any other environment. The test's code is https://sourceforge.net/p/xmlunit/code/HEAD/tree/trunk/xmlunit/src/tests /net-constraints/ValidationConstraintsTest.cs Error stack trace (copy pasting from an xterm): [nunit2] Test Case Failures: [nunit2] 1) net.sf.xmlunit.validation.ValidatorTest.ShouldThrowWhenValidatingInstanceAndSchemaIsInvalid : System.TypeInitializationException : An exception was thrown by the type initializer for NUnit.Framework.AsyncInvocationRegion [nunit2] ----> System.ArgumentNullException : Argument cannot be null. [nunit2] Parameter name: method [nunit2] at net.sf.xmlunit.validation.ValidatorTest.ShouldThrowWhenValidatingInstanceAndSchemaIsInvalid () [0x00000] in <filename unknown>:0 [nunit2] --ArgumentNullException [nunit2] at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0 [nunit2] at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0 [nunit2] at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0 [nunit2] at NUnit.Framework.AsyncInvocationRegion..cctor () [0x00000] in <filename unknown>:0 To manage notifications about this bug go to: https://bugs.launchpad.net/nunitv2/+bug/1235891/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp