Fix GetObjectForNativeVariant test issue. It should roundtrip the actual object inste...
authorYi Zhang (CLR) <yzha@microsoft.com>
Sat, 9 Apr 2016 06:22:51 +0000 (23:22 -0700)
committerYi Zhang (CLR) <yzha@microsoft.com>
Sat, 9 Apr 2016 19:27:53 +0000 (12:27 -0700)
commita1ffff4a8e305c1e06548aee8cdc43a091fab3ac
treed503274ee52a342099f16539b40c1896e5cd26ec
parent643fc4af4d30730909d6fbcfba71df8c71ee4ab3
Fix GetObjectForNativeVariant test issue. It should roundtrip the actual object instead of IntPtr. Also add proper variant clean up code.

NOTE that I had to keep Marshal.IUnknownForObject call to force COM initialization.
tests/src/Interop/MarshalAPI/GetObjectForNativeVariant/GetObjectForNativeVariant.cs