What problem does it solve?
Writing tests for GDI+ rendering APIs requires verifying that drawing calls actually produce pixels, covering both integer and float overloads, and matching .NET version guards — this Skill codifies those conventions so tests are consistent and complete.
Core Features & Use Cases
- Bitmap-Based Verification: Uses VerifyBitmapNotEmpty and VerifyBitmapEmpty helpers that lock bitmap bits and scan for non-zero pixels to confirm rendering occurred.
- Overload and Version Coverage: Enforces separate integer/float overload tests, Draw/Fill pair coverage, and #if NET11_0_OR_GREATER guards matching the API under test.
- GraphicsPath Point Validation: Verifies PathPoints arrays with FluentAssertions approximate comparison at 0.000001f precision.
- Use Case: When adding a new DrawRoundedRectangle API to System.Drawing, generate the full test matrix — integer and float overloads, Draw and Fill variants, and GraphicsPath point assertions — following the established naming and disposal conventions.
Quick Start
Write unit tests for the new Graphics.DrawRoundedRectangle API following the GDI+ rendering test conventions.