Skip to content

Dispose methods have no hook-able point #3918

@W-Sebastian

Description

@W-Sebastian

We can now hook all the methods of a class including the constructor and static constructor thanks to the ClassConstructorAttribute.
However there is no place for Dispose to hook into to ensure it is executed in a certain way (for example same thread it was created).

This is a minor issue but also the last missing puzzle from being able to fully control the test execution from start to end.

I am not sure if it makes sense to have it on the Hooks (as a hook type) or with an attribute like the ClassContructorAttribute. In my opinion the ClassConstructorAttribute is strange since it makes more sense to have this functionality as hooks just the same (perhaps with two additional hook interfaces).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions