Lightlines
By dotnet

testability-obstacle

dotnet1.6k installs

Make hard-to-test C# code testable, not redesigned.

What it does

Adds a minimal, behavior-preserving dependency seam and deterministic tests for a specific C# behavior.

When to use it

Use when a requested C#/.NET test needs a production edit to control an ambient dependency and the replacement seam has not already been selected; the workspace must contain C# source and a .csproj or .sln.

How to use it

Give it a method or workflow and its expected behavior in a C# project; it makes the smallest necessary production change and adds deterministic tests.

What you provide

  • the method or workflow to test
  • the expected behavior
  • An existing project

Latest review

What you need · 1

Required first when the repository has no test project; otherwise the workflow uses the existing test project.


Access · 0

No additional actions listed.