Hangfire.Console
Hangfire.Console copied to clipboard
"Console is already initialized" Exception in unit tests
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?
#92 addresses this
There's now a forked version with some modernization and bugfixes now on NuGet.org. Hopefully this project will come back to life at some point and the fixes can be accepted upstream 😄