[Question] Is there an alternative to the global/static AnsiConsole for testing? #571
-
I'm not sure if that's the right place to asks questions but I couldn't find anything about where to ask. Is there a way to get an instance for |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I will take a look at it. |
Beta Was this translation helpful? Give feedback.
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.