Skip to content

Testing WinForms VB Code Issue #11031

@paul1956

Description

@paul1956

Background and motivation

I would like to write some test for WinForms Code written in VB in Project Microsoft.VisualBasic.Forms but many functions I want to test are not visible to testing. In C# they are declared with an attribute similar to [assembly:InternalsVisibleTo("NameOfYourUnitTestProject")], But I don't know how to do that for the VB functions.

API Proposal

Make Microsoft.VisualBasic.Forms functions InternalsVisibleTo test functions

API Usage

Not sure

Alternative Designs

Don't test VB internals as it is today with <30% coverage

Risks

If I do it high, if someone that knows what they are doing does it none.

Will this feature affect UI controls?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions