Skip to content

WithNotParsed() not being called during test #424

Closed
@shyassure

Description

@shyassure

When running a test and command line parser inside a unit test, the HandleParseError function is never being called. I created a gist with a test and a class showing the example.

If I execute the class using regular F5 debugging inside Visual Studio, the HandleParseError function will be called.

https://gist.github.com/shyassure/78fcb2e5a497d2d266f44f579e0c37d3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions