I was wondering what everyone does with regards to unit testing for MonoGame applications.
Specifically what does everyone do with game code that take graphics related classes as parameters.
I have tried (albeit not for very long) to create a GraphicsDevice in my unit test assembly and was hoping to use that to initialise things like Texture2D etc. but haven’t had much luck getting this to work so far.
The other option is to hide everything behind interfaces which would allow me to not have to worry about the graphics related classes at all. I didn’t really want to do this as it seems a bit excessive to do this to every MonoGame class that my game may use.
Before making a decision one way or another I was wondering what approaches other people have taken.