a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

generate-testability-wrappers

DO NOT USE when the target already consumes an injected interface or built-in abstraction such as IFileSystem or TimeProvider, even if the request says "generate a wrapper"; no new wrapper is needed. Use only when C# source calls an ambient/static dependency and no injectable seam exists: first-time TimeProvider, IHttpClientFactory, or…

Full publisher description

DO NOT USE when the target already consumes an injected interface or built-in abstraction such as IFileSystem or TimeProvider, even if the request says "generate a wrapper"; no new wrapper is needed. Use only when C# source calls an ambient/static dependency and no injectable seam exists: first-time TimeProvider, IHttpClientFactory, or System.IO.Abstractions adoption; minimal Environment/Console/Process wrappers; IProcessRunner; DI registration; or an ambient seam that preserves a static API. Exclude static detection (detect-static-dependencies), migration to an existing/registered abstraction (migrate-static-to-wrapper), one blocked behavior plus deterministic tests (testability-obstacle), and general interface design.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

microsoft/testfx

.agents/skills/generate-testability-wrappers/SKILL.md

Pinned revision 54980bc56a22eb758c040a20b8f3571ee2d50417

Source checked

Reviewed licence: MIT
Specific instruction/source terms; preserve the linked licence conditions, notices and attribution.

Reviewed publisher revision ↗ · 2026-11-22
This indexed source has a different revision. Verify its applicable terms before use.

This skill page is available in English. Publisher instructions stay in their original language.