Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get System.Runtime.InteropServices.Tests passing with NativeAOT #73145

Closed
MichalStrehovsky opened this issue Aug 1, 2022 · 13 comments · Fixed by #75669
Closed

Get System.Runtime.InteropServices.Tests passing with NativeAOT #73145

MichalStrehovsky opened this issue Aug 1, 2022 · 13 comments · Fixed by #75669

Comments

@MichalStrehovsky
Copy link
Member

Spot checking the results:

General test improvement:

  • Variant marshalling should be conditioned on supporting COM
  • COM testing conditioned on COM support

NativeAOT fixes:

  • Need a bit more validation in corner cases
  • Need to match strings in exceptions messages

A lot of this would also benefit Mono testing that decided to just not run any of the tests because it's too much of a hassle when this is just one of the 200+ libraries tests that needed to be brought up 2 years ago:

[assembly: ActiveIssue("https://github.com/dotnet/runtime/issues/34748", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]

Attached logs here, apparently Github has a 64k character comment limit and this just fails too much: testfails.txt

Cc @AaronRobinsonMSFT @elinor-fung @jkoritzinsky if any of you have cycles to help with some of this.

@AaronRobinsonMSFT
Copy link
Member

@MichalStrehovsky Is there a workflow document for building and running individual tests with NativeAOT? My normal workflow is to build the Clr and Libraries subset using the build.cmd at root, build all native test assets, then build and run a single test using ./dotnet.cmd build. I can iterate on just the Clr side or the test side by rebuilding the respective part. I never have to touch Libraries or native test assets if I don't want.

How would I modify that workflow to use NativeAOT?

@jkotas
Copy link
Member

jkotas commented Aug 1, 2022

@AaronRobinsonMSFT
Copy link
Member

ILC is crashing a lot. I'll try to get back to this at some point, but the workflow here is rather annoying if I can't build a single test at a time.

@AaronRobinsonMSFT
Copy link
Member

Got this building and running locally.

Variant marshalling should be conditioned on supporting COM
COM testing conditioned on COM support

What is our trigger here? Are we checking for feature flags via attributes?

@AaronRobinsonMSFT
Copy link
Member

I think I'm going to need a public API for this detection. Any concerns with me creating a new RuntimeFeature.IsBuiltInComSupported in a similar pattern to RuntimeFeatures.IsDynamicCodeSupported?

@jkotas
Copy link
Member

jkotas commented Aug 1, 2022

We should not need a public API to make the tests work.

We do have SupportsComInterop property in PlatformDetection. Is it enough, or is it missing something? We can add more as necessary.

@AaronRobinsonMSFT
Copy link
Member

We do have SupportsComInterop property in PlatformDetection. Is it enough, or is it missing something? We can add more as necessary.

Right, but that assumes Windows always has this support, which isn't true because it can be disabled. It has enough for NativeAOT, but I'd prefer to just thread this through now instead of needing to do it later.

@jkotas
Copy link
Member

jkotas commented Aug 1, 2022

PlatformDetection has many IsSupported properties like that. We stayed away from introducing them as public APIs since they would not be very useful. Catching the NotSuppportedException works equally well if the app needs to do something about the unsupported API.

I would just tweak PlatformDetection as necessary.

@elinor-fung
Copy link
Member

I'd expect we can just make use of AppContext.TryGetSwitch to get things conditioned properly. I believe some libraries tests already do this for other features switches.

@MichalStrehovsky
Copy link
Member Author

ILC is crashing a lot. I'll try to get back to this at some point, but the workflow here is rather annoying if I can't build a single test at a time.

Was it crashing because of a missing Array<T> type? I'd want to know if this was something else. You'll get the Array<T> crashes if the libs partition was built against CoreCLR's corelib. I haven't yet figured out how to recover besides deleting all artifacts.

The test fixes are usually in the shape of:

  • Replace Fact/Theory with ConditionalFact/ConditionalTheory conditioned on ref.emit/assembly loading/COM/etc. being supported.
  • Fix reflection within the test to happen in a way that trimming analysis can analyze if the test is doing reflection.

I think a lot of this would also be testable with CoreCLR where we would disable COM support and try to make the test pass in that configuration. Once all the tests are annotated, we could even have extra weekly test passes that just run all the libs tests with COM disabled.

If you're looking at this with NativeAOT already, there's a known issue with NativeMemory that crashes the process: #73143.

@AaronRobinsonMSFT
Copy link
Member

System.PlatformNotSupportedException : Dynamic code generation is not supported on this platform.

Twenty of the tests are using Reflection.Emit and failing prior to any validation. For example:

[Fact]
[SkipOnMono("Marshal.ReadIntPtr will not be implemented in Mono, see https://github.com/mono/mono/issues/15085.")]
public void ReadIntPtr_NotReadable_ThrowsArgumentException()
{
AssemblyBuilder assemblyBuilder = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Assembly"), AssemblyBuilderAccess.RunAndCollect);
ModuleBuilder moduleBuilder = assemblyBuilder.DefineDynamicModule("Module");
TypeBuilder typeBuilder = moduleBuilder.DefineType("Type");
Type collectibleType = typeBuilder.CreateType();
object collectibleObject = Activator.CreateInstance(collectibleType);
AssertExtensions.Throws<ArgumentException>(null, () => Marshal.ReadIntPtr(collectibleObject, 0));
}

@jkotas
Copy link
Member

jkotas commented Aug 1, 2022

They need to get: ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]

@AaronRobinsonMSFT
Copy link
Member

AaronRobinsonMSFT commented Aug 2, 2022

Down to 56 failures.
  [FAIL] System.Runtime.InteropServices.Tests.PrelinkTests.Prelink_NonRuntimeMethod_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, String, Action) + 0x5c
     at System.Runtime.InteropServices.Tests.PrelinkTests.Prelink_NonRuntimeMethod_ThrowsArgumentException() + 0xae
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.GetFunctionPointer_GenericDelegate_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests+GenericDelegate`1[System.String] is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests+GenericDelegate`1[System.String] is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetDelegateMarshallingStub(RuntimeTypeHandle, Boolean) + 0xb9
     at System.Runtime.InteropServices.PInvokeMarshal.AllocateThunk(Delegate) + 0xd2
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xcc5fd8
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValueLocked(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x4d
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x5c
     at System.Runtime.InteropServices.PInvokeMarshal.GetFunctionPointerForDelegate(Delegate) + 0x16b
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegateInternal(Delegate) + 0x18
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(Delegate) + 0x28
     at System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.<>c__DisplayClass6_0.<GetFunctionPointer_GenericDelegate_ThrowsArgumentException>b__0() + 0x22
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetDelegateMarshallingStub(RuntimeTypeHandle, Boolean) + 0xb9
     at System.Runtime.InteropServices.PInvokeMarshal.AllocateThunk(Delegate) + 0xd2
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xcc5fd8
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValueLocked(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x4d
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x5c
     at System.Runtime.InteropServices.PInvokeMarshal.GetFunctionPointerForDelegate(Delegate) + 0x16b
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegateInternal(Delegate) + 0x18
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(Delegate) + 0x28
     at System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.<>c__DisplayClass6_0.<GetFunctionPointer_GenericDelegate_ThrowsArgumentException>b__0() + 0x22
  [FAIL] System.Tests.PosixSignalRegistrationTests.ExternalConsoleManipulation_RegistrationRemoved_UnregisterSucceeds
  System.PlatformNotSupportedException : RemoteExecutor is not supported on this platform.
     at Microsoft.DotNet.RemoteExecutor.RemoteExecutor.Invoke(MethodInfo, String[], RemoteInvokeOptions, Boolean) + 0xcf
     at Microsoft.DotNet.RemoteExecutor.RemoteExecutor.Invoke(Action, RemoteInvokeOptions) + 0x59
     at System.Tests.PosixSignalRegistrationTests.ExternalConsoleManipulation_RegistrationRemoved_UnregisterSucceeds() + 0x8c
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.GetFunctionPointerForDelegate_MarshalledClosedStaticDelegate
  System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests+NoArgsDelegate is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetDelegateMarshallingStub(RuntimeTypeHandle, Boolean) + 0xb9
     at System.Runtime.InteropServices.PInvokeMarshal.AllocateThunk(Delegate) + 0xd2
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xcc5fd8
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValueLocked(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x4d
     at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x5c
     at System.Runtime.InteropServices.PInvokeMarshal.GetFunctionPointerForDelegate(Delegate) + 0x16b
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegateInternal(Delegate) + 0x18
     at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(Delegate) + 0x28
     at System.Runtime.InteropServices.Tests.GetFunctionPointerForDelegateTests.GetFunctionPointerForDelegate_MarshalledClosedStaticDelegate() + 0xcd
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.OffsetOfTests.OffsetOf_NotMarshallable_ThrowsArgumentException(t: typeof(System.Runtime.InteropServices.Tests.StructWithFxdLPSTRSAFld), fieldName: "Arr")
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.StructWithFxdLPSTRSAFld is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.StructWithFxdLPSTRSAFld is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructFieldOffset(RuntimeTypeHandle, String) + 0x103
     at System.Runtime.InteropServices.Marshal.OffsetOf(Type, String) + 0x12d
     at System.Runtime.InteropServices.Tests.OffsetOfTests.<>c__DisplayClass14_0.<OffsetOf_NotMarshallable_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructFieldOffset(RuntimeTypeHandle, String) + 0x103
     at System.Runtime.InteropServices.Marshal.OffsetOf(Type, String) + 0x12d
     at System.Runtime.InteropServices.Tests.OffsetOfTests.<>c__DisplayClass14_0.<OffsetOf_NotMarshallable_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.OffsetOfTests.OffsetOf_NonRuntimeField_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.NotSupportedException): Specified method is not supported.
  ---- System.NotSupportedException : Specified method is not supported.
     at System.Type.get_TypeHandle() + 0x37
     at System.Runtime.InteropServices.Marshal.OffsetOf(Type, String) + 0xb9
     at System.Runtime.InteropServices.Tests.OffsetOfTests.<>c.<OffsetOf_NonRuntimeField_ThrowsArgumentException>b__12_0() + 0x42
  ----- Inner Stack Trace -----
     at System.Type.get_TypeHandle() + 0x37
     at System.Runtime.InteropServices.Marshal.OffsetOf(Type, String) + 0xb9
     at System.Runtime.InteropServices.Tests.OffsetOfTests.<>c.<OffsetOf_NonRuntimeField_ThrowsArgumentException>b__12_0() + 0x42
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352570, errorInfo: 0)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0xf5
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352319, errorInfo: 0)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0xf5
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352570, errorInfo: -1)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0xf5
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352319, errorInfo: -1)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0xf5
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_NonBlittable_ThrowsArgumentException(o: NonGenericClass { })
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x29b
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass9_0.<StructureToPtr_NonBlittable_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x29b
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass9_0.<StructureToPtr_NonBlittable_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_NoErrorInfo_ReturnsValidException(errorCode: -2147352570)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_NoErrorInfo_ReturnsValidException(Int32) + 0x128
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.OffsetOfTests.OffsetOf_NoLayoutPoint_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Func`1) + 0x4a
     at System.Runtime.InteropServices.Tests.OffsetOfTests.OffsetOf_NoLayoutPoint_ThrowsArgumentException() + 0xb0
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_NonBlittable_ThrowsArgumentException(o: "string")
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.String is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.String is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x29b
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass9_0.<StructureToPtr_NonBlittable_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x29b
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass9_0.<StructureToPtr_NonBlittable_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_NoErrorInfo_ReturnsValidException(errorCode: -2147352319)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_NoErrorInfo_ReturnsValidException(Int32) + 0x128
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_NoErrorInfo_ReturnsValidException(errorCode: -2147352570)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_NoErrorInfo_ReturnsValidException(Int32) + 0xed
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_AutoLayoutClass_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Object) + 0x23
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c.<PtrToStructure_AutoLayoutClass_ThrowsArgumentException>b__7_0() + 0x3f
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Object) + 0x23
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c.<PtrToStructure_AutoLayoutClass_ThrowsArgumentException>b__7_0() + 0x3f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_Object_ReturnsExpected
  System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.SizeOfTests+SomeTestStruct is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_Object_ReturnsExpected() + 0x4b
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_NoErrorInfo_ReturnsValidException(errorCode: -2147352319)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.GetExceptionForHRTests.GetExceptionForHR_NoErrorInfo_ReturnsValidException(Int32) + 0xed
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_GenericObject_ThrowsArgumentException(o: GenericClass`1 { })
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structure
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_GenericObject_ThrowsArgumentException(Object) + 0x88
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetDelegateForFunctionPointerTests.GetDelegateForFunctionPointer_MulticastDelegate_ThrowsMustBeDelegate
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.MulticastDelegate is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.MulticastDelegate is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x92
     at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0xe2
     at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointerInternal(IntPtr, Type) + 0x49
     at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr, Type) + 0x1ef
     at System.Runtime.InteropServices.Tests.GetDelegateForFunctionPointerTests.<>c__DisplayClass4_0.<GetDelegateForFunctionPointer_MulticastDelegate_ThrowsMustBeDelegate>b__0() + 0x4f
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x92
     at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0xe2
     at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointerInternal(IntPtr, Type) + 0x49
     at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr, Type) + 0x1ef
     at System.Runtime.InteropServices.Tests.GetDelegateForFunctionPointerTests.<>c__DisplayClass4_0.<GetDelegateForFunctionPointer_MulticastDelegate_ThrowsMustBeDelegate>b__0() + 0x4f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NullStructureType_ThrowsArgumentNullException
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NullStructureType_ThrowsArgumentNullException() + 0xa4
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_GenericObject_ThrowsArgumentException(o: System.Runtime.InteropServices.Tests.Common.GenericStruct`1[System.String])
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structure
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_GenericObject_ThrowsArgumentException(Object) + 0x88
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_Pointer_ReturnsExpected
  System.Runtime.InteropServices.MissingInteropDataException : System.Int32* is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_Pointer_ReturnsExpected() + 0x63
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352570, errorInfo: 0)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0x130
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_InvalidLengthByValArrayInStruct_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_InvalidLengthByValArrayInStruct_ThrowsArgumentException() + 0x1bc
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352319, errorInfo: 0)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0x130
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_AutoLayout_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.NullReferenceException): Object reference not set to an instance of an object.
  ---- System.NullReferenceException : Object reference not set to an instance of an object.
     at System.Buffer.Memmove(Byte&, Byte&, UIntPtr) + 0x23d
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x2d4
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass10_0.<StructureToPtr_AutoLayout_ThrowsArgumentException>b__0() + 0x4a
  ----- Inner Stack Trace -----
     at System.Buffer.Memmove(Byte&, Byte&, UIntPtr) + 0x23d
     at System.Runtime.InteropServices.Marshal.StructureToPtr(Object, IntPtr, Boolean) + 0x2d4
     at System.Runtime.InteropServices.Tests.StructureToPtrTests.<>c__DisplayClass10_0.<StructureToPtr_AutoLayout_ThrowsArgumentException>b__0() + 0x4a
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352570, errorInfo: -1)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0x130
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Int32&))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Action) + 0x4a
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(string))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Action) + 0x4a
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(errorCode: -2147352319, errorInfo: -1)
  Assert.NotEmpty() Failure
     at System.Runtime.InteropServices.Tests.ThrowExceptionForHRTests.ThrowExceptionForHR_ErrorInfo_ReturnsValidException(Int32, IntPtr) + 0x130
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe6e7d0
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ObjectNoBlittable_ThrowsArgumentException(structure: NonGenericClass { })
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Object) + 0x23
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass13_0.<PtrToStructure_ObjectNoBlittable_ThrowsArgumentException>b__0() + 0x24
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Object) + 0x23
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass13_0.<PtrToStructure_ObjectNoBlittable_ThrowsArgumentException>b__0() + 0x24
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.NonGenericClass))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Action) + 0x4a
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.GenericClass<>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NormalExceptionInsideCatch_ReturnsExpected(hresult: -1)
  System.PlatformNotSupportedException : Operation is not supported on this platform.
     at System.Runtime.InteropServices.Marshal.GetExceptionCode() + 0x33
     at System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NormalExceptionInsideCatch_ReturnsExpected(Int32) + 0x75
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.GenericClass<string>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_InvalidType_ThrowsArgumentException(type: typeof(System.Int32&), paramName: null)
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Int32& is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Int32& is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ObjectNotValueClass_ThrowsArgumentException(structure: System.Runtime.InteropServices.Tests.Common.NonGenericStruct)
  Assert.Equal() Failure
            � (pos 0)
  Expected: structure
  Actual:   The structure must not be a value class.
            � (pos 0)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ObjectNotValueClass_ThrowsArgumentException(Object) + 0x88
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NormalExceptionInsideCatch_ReturnsExpected(hresult: 10)
  System.PlatformNotSupportedException : Operation is not supported on this platform.
     at System.Runtime.InteropServices.Marshal.GetExceptionCode() + 0x33
     at System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NormalExceptionInsideCatch_ReturnsExpected(Int32) + 0x75
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5f45a
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.AbstractClass))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Action) + 0x4a
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ObjectNotValueClass_ThrowsArgumentException(structure: Value1)
  Assert.Equal() Failure
            � (pos 0)
  Expected: structure
  Actual:   The structure must not be a value class.
            � (pos 0)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_ObjectNotValueClass_ThrowsArgumentException(Object) + 0x88
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionPointersTests.GetExceptionPointers_ReturnsExpected
  System.PlatformNotSupportedException : Operation is not supported on this platform.
     at System.Runtime.InteropServices.Marshal.GetExceptionPointers() + 0x33
     at System.Runtime.InteropServices.Tests.GetExceptionPointersTests.GetExceptionPointers_ReturnsExpected() + 0x1b
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NoException_ReturnsZero
  System.PlatformNotSupportedException : Operation is not supported on this platform.
     at System.Runtime.InteropServices.Marshal.GetExceptionCode() + 0x33
     at System.Runtime.InteropServices.Tests.GetExceptionCodeTests.GetExceptionCode_NoException_ReturnsZero() + 0x1a
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.GenericStruct<>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_InvalidType_ThrowsArgumentException(type: typeof(T), paramName: null)
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.PlatformNotSupportedException): TypeHandles are not supported for types that return true for ContainsGenericParameters.
  ---- System.PlatformNotSupportedException : TypeHandles are not supported for types that return true for ContainsGenericParameters.
     at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xdc
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x29
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  ----- Inner Stack Trace -----
     at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xdc
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x29
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.GenericStruct<string>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_InvalidType_ThrowsArgumentException(type: typeof(System.Runtime.InteropServices.Tests.SizeOfTests+TestStructWithFxdLPSTRSAFld), paramName: null)
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.SizeOfTests+TestStructWithFxdLPSTRSAFld is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.SizeOfTests+TestStructWithFxdLPSTRSAFld is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.IGenericInterface<>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_NonBlittablType_ThrowsArgumentException(structureType: typeof(System.Runtime.InteropServices.Tests.PtrToStructureTests+AutoLayoutStruct))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.NullReferenceException): Object reference not set to an instance of an object.
  ---- System.NullReferenceException : Object reference not set to an instance of an object.
     at System.Buffer.Memmove(Byte&, Byte&, UIntPtr) + 0x237
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x1aa
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at System.Buffer.Memmove(Byte&, Byte&, UIntPtr) + 0x237
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x1aa
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(System.Runtime.InteropServices.Tests.Common.IGenericInterface<string>))
  Assert.Equal() Failure
                     � (pos 9)
  Expected: structureType
  Actual:   structuretype
                     � (pos 9)
     at System.AssertExtensions.Throws[T](String, Action) + 0x86
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(Type) + 0x84
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe5ef6b
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x30f
  [FAIL] System.Runtime.InteropServices.Tests.SizeOfTests.SizeOf_InvalidType_ThrowsArgumentException(type: typeof(int[]), paramName: null)
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Int32[] is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Int32[] is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.SizeOfHelper(Type, Boolean) + 0x36
     at System.Runtime.InteropServices.Marshal.SizeOf(Type) + 0xdf
     at System.Runtime.InteropServices.Tests.SizeOfTests.<>c__DisplayClass8_0.<SizeOf_InvalidType_ThrowsArgumentException>b__0() + 0x22
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_NonBlittablType_ThrowsArgumentException(structureType: typeof(System.Runtime.InteropServices.Tests.Common.NonGenericClass))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.Common.NonGenericClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_NonRuntimeType_ThrowsArgumentException(invalidType: typeof(T))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.PlatformNotSupportedException): TypeHandles are not supported for types that return true for ContainsGenericParameters.
  ---- System.PlatformNotSupportedException : TypeHandles are not supported for types that return true for ContainsGenericParameters.
     at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xdc
     at System.Runtime.InteropServices.Marshal.DestroyStructure(IntPtr, Type) + 0xf0
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.<>c__DisplayClass6_0.<DestroyStructure_NonRuntimeType_ThrowsArgumentException>b__0() + 0x24
  ----- Inner Stack Trace -----
     at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xdc
     at System.Runtime.InteropServices.Marshal.DestroyStructure(IntPtr, Type) + 0xf0
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.<>c__DisplayClass6_0.<DestroyStructure_NonRuntimeType_ThrowsArgumentException>b__0() + 0x24
  [FAIL] System.Runtime.InteropServices.Tests.PtrToStructureTests.PtrToStructure_NonBlittablType_ThrowsArgumentException(structureType: typeof(System.Runtime.InteropServices.Tests.Common.AbstractClass))
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   typeof(System.Runtime.InteropServices.MissingInteropDataException): System.Runtime.InteropServices.Tests.Common.AbstractClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
  ---- System.Runtime.InteropServices.MissingInteropDataException : System.Runtime.InteropServices.Tests.Common.AbstractClass is missing structure marshalling data. To enable structure marshalling data, add a MarshalStructure directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  ----- Inner Stack Trace -----
     at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetStructUnsafeStructSize(RuntimeTypeHandle) + 0xc4
     at System.Runtime.InteropServices.Marshal.PtrToStructureImpl(IntPtr, Object) + 0x17f
     at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr, Object, Boolean) + 0x112
     at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr, Type) + 0x11a
     at System.Runtime.InteropServices.Tests.PtrToStructureTests.<>c__DisplayClass19_0.<PtrToStructure_NonBlittablType_ThrowsArgumentException>b__0() + 0x2a
  [FAIL] System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_AutoLayout_ThrowsArgumentException
  Assert.Throws() Failure
  Expected: typeof(System.ArgumentException)
  Actual:   (No exception was thrown)
     at System.AssertExtensions.Throws[T](String, Action) + 0x4a
     at System.Runtime.InteropServices.Tests.DestroyStructureTests.DestroyStructure_AutoLayout_ThrowsArgumentException() + 0xb5
     at System.Runtime.InteropServices.Tests!<BaseAddress>+0xe58141
     at System.Runtime.RawCalliHelper.Call(IntPtr, Void*, Byte&, Byte&, Void*) + 0x3f
     at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x23d

@MichalStrehovsky MichalStrehovsky modified the milestones: 7.0.0, 8.0.0 Aug 12, 2022
@MichalStrehovsky MichalStrehovsky moved this to High Priority in AppModel Aug 12, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 22, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 30, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants