Skip to content

"Console is already initialized" Exception in unit tests #120

@rossknudsen

Description

@rossknudsen

I'm running some unit/integration tests in ASPNetCore and I'm getting an InvalidOperationException thrown with the message "Console is already initialized" when I run them. The error makes sense to me and can probably be mitigated by some restructuring of my unit tests to run in a particular way. However its not straightforward to fix.

So I was wondering if you would consider either updating the guard here or whether you would accept a PR to fix this?

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