Skip to content

Eliminate direct construction of MEF-exported objects in test code #29182

@sharwell

Description

@sharwell

This is a clean-up item related to #28945.

MEF-exported objects should:

  • Have a single constructor which is marked [ImportingConstructor]
  • Have the correct [Obsolete] attribute applied to the constructor
  • Not be directly instantiated in test code, but rather obtained from the MEF container

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions