Add tests for our layout-class marshalling (#20867)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Wed, 9 Jan 2019 23:03:43 +0000 (15:03 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Jan 2019 23:03:43 +0000 (15:03 -0800)
commit9b3ace68d678b52ccff163fdcf1332be20ecd17f
tree5f7d85b799d871327e0dd33faa59f1c4385c4ba5
parent5c480a4a83339564d4631762c100a5e12ed87357
Add tests for our layout-class marshalling (#20867)

* Add simple test for the LayoutClassMarshaler (most of the code is already covered by the struct marshalling tests).

* Add test for blittable layout class.

* Apparently layout classes are passed by value when passed as struct fields instead of byref.
tests/src/Interop/CMakeLists.txt
tests/src/Interop/LayoutClass/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/LayoutClass/LayoutClassNative.cpp [new file with mode: 0644]
tests/src/Interop/LayoutClass/LayoutClassTest.cs [new file with mode: 0644]
tests/src/Interop/LayoutClass/LayoutClassTest.csproj [new file with mode: 0644]