Add PInvoke/Delegate tests (#19323)
authorZeng Jiang <v-jiazen@microsoft.com>
Tue, 23 Oct 2018 21:05:57 +0000 (05:05 +0800)
committerJeremy Koritzinsky <jkoritzinsky@gmail.com>
Tue, 23 Oct 2018 21:05:57 +0000 (14:05 -0700)
commit77aa9586d5a5aff401f9461de7252c27648a2763
tree7e1c6227273b93c3b5dfd81a479a06e09f31076b
parentcd89eaf4ecf86a877187ebe2b091d4ed17db7c0e
Add PInvoke/Delegate tests (#19323)

* Add PInvoke/Delegate tests

* Initial pass to get Delegate tests building xplat and running with current infrastructure.

* Fix BOOL and NULL comparisons.

* Fix copy-paste typo

* Disable explicit offset tests off-Windows.
19 files changed:
tests/src/Interop/CMakeLists.txt
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsDefault/AsDefaultTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsDefault/AsDefaultTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFieldNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFunctionPtr/AsFunctionPtrTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsFunctionPtr/AsFunctionPtrTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsInterface/AsInterfaceTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/AsInterface/AsInterfaceTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/RefLib/RefLib.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsField/RefLib/RefLib.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsDefault/AsDefaultTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsDefault/AsDefaultTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsFunctionPtr/AsFunctionPtrTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsFunctionPtr/AsFunctionPtrTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsInterface/AsInterfaceTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsInterface/AsInterfaceTest.csproj [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/AsParamNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/Delegate/MarshalDelegateAsParam/CMakeLists.txt [new file with mode: 0644]