Skip to content

We need tests for calling COM interface methods from c++ #1817

Closed as not planned

Description

@hughbe

We need tests for various interfaces implemented by managed classes (e.g. IOleControlSite etc)

The best way to test this would be to implement tests in c++ and PInvoke them passing the managed class as an interface as an a IntPtr to unmanaged code. We’d then call functions from c++ and test things like HRESULTS etc

I have a prototype but not sure how to integrate a test c++ dll into the product infrastructure

Activity

  1. added
    test-enhancement
    on Sep 9, 2019
  2. added this to the 5.0 milestone on Oct 10, 2019
  3. modified the milestones: 5.0 Previews 1-4, 5.0 on Apr 20, 2020
  4. modified the milestones: 5.0, 6.0 Preview1 on Sep 1, 2020
  5. modified the milestones: 6.0, 7.0 on Aug 27, 2021
  6. modified the milestones: .NET 7.0, .NET 8.0 on Aug 11, 2022
  7. JeremyKuhne commented on Aug 15, 2023

    @JeremyKuhne
    Member

    We can and now do this in-situ by leveraging the ComHelpers class and direct native access through our CsWin32 generated COM structs.

  8. ghost removed this from the .NET 8.0 milestone on Aug 15, 2023
  9. ghost locked as resolved and limited conversation to collaborators on Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    test-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions