Skip to content

[Question] Is there an alternative to the global/static AnsiConsole for testing? #571

Answered by phil-scott-78
wischi-chr asked this question in Q&A
Discussion options

You must be logged in to vote

Yup. Take a look at IAnsiConsole. Right now there isn't a standard mock or fake around it but you can look at the unit tests in the source and see how it's being used to for testing the library itself.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by patriksvensson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #327 on October 04, 2021 20:16.