Add tests for marshalling as VARIANT_BOOL or VARIANT (#20856)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Fri, 16 Nov 2018 01:14:35 +0000 (17:14 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Nov 2018 01:14:35 +0000 (17:14 -0800)
commita08a66902cdfb8e713c1e11f56c3aea9ca6ece6c
tree0ec9b4dca8d487aba8be6c578903ae8fccba7054
parentcd0fe8e2d781b21d18254b6414521f6399997f6e
Add tests for marshalling as VARIANT_BOOL or VARIANT (#20856)

* Add native side impl for VARIANT_BOOL test.

* More bool native code.

* Add VariantBool marshalling tests.

* Add infrastructure for tests for object -> VARIANT marshalling.

* Add variant tests for all built-in types.

* Clean up Variant tests.

* Add test for passing custom structure as object.

* Add test for VARIANT_BOOL byref.

* Added byref tests for VARIANT marshalling.

* Add field marshalling tests for VARIANT.

* Move ByValue tests to not have two sources of truth.

* Make managed code the one source of truth.

* Clean up formatting/unused methods.

* Clean up some whitespace issues.

* Add tests for BStrWrapper and CurrencyWrapper marshalling.

* Add UnknownWrapper tests.

* Add a test for VariantWrapper and PInvoke.

* PR Feedback.

* Remove ToString.

* Fix visibility

* Fix MSBuild import path.

* Clean up Variant tests.
tests/src/Interop/CMakeLists.txt
tests/src/Interop/PInvoke/Variant/CMakeLists.txt [new file with mode: 0644]
tests/src/Interop/PInvoke/Variant/PInvokeDefs.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Variant/VariantNative.cpp [new file with mode: 0644]
tests/src/Interop/PInvoke/Variant/VariantTest.cs [new file with mode: 0644]
tests/src/Interop/PInvoke/Variant/VariantTest.csproj [new file with mode: 0644]
tests/src/Interop/PrimitiveMarshalling/Bool/BoolNative.cpp
tests/src/Interop/PrimitiveMarshalling/Bool/BoolTest.cs
tests/src/Interop/PrimitiveMarshalling/Bool/NativeMethodDef.cs