Testing graphics code in CI environments is a pain. Your tests need a GraphicsDevice, but CI runners don't have displays attached. This project demonstrates how to actually test MonoGame graphics ...
Copy the ShapeBatch.cs file into your project. The ShapeBatch static class is in the ShapeUtils namespace. ShapeBatch.Begin(GraphicsDevice); // Call any of the static shape methods here, such as: // ...