# tonerdo/pose

Replace any .NET method (including static and non-virtual) with a delegate

Repository: https://github.com/tonerdo/pose
Canonical: https://ross.abutalabs.com/products/pose
Language: C#
License: MIT
License Family: permissive
Topics: testing, testing-framework, isolation-framework, dotnet, dotnet-core, csharp, mocking
Last push: 2022-09-23T12:14:55+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3319, "days_push": 1440, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1105, forks 72 (observed 2026-08-28T04:03:36.355290+00:00)

## What it is
Pose is a .NET isolation/mocking library that lets you replace any method—including static, non-virtual, and constructors—with a delegate at runtime. It is implemented entirely in managed code via Reflection Emit, requiring no profiling APIs or rewritten assemblies, and targets .NET Standard 2.0.

## Use cases
- mock static methods in c# unit tests
- replace datetime.now in tests
- shim non-virtual instance methods in .net
- isolate code under test from console and system dependencies
- mock constructors in dotnet tests
- alternative to microsoft fakes without unmanaged apis

## When to choose
- you need to mock static, non-virtual, or sealed methods in .NET tests
- you want a Microsoft Fakes alternative that works cross-platform without profiling APIs
- you test legacy .NET code that cannot be refactored for dependency injection

## When to avoid
- you only need to mock interfaces or virtual methods—a standard mocking library like Moq is simpler
- your project targets modern .NET versions beyond what Pose supports
- you need actively maintained tooling with ongoing support

## Facets
- artifact type: library
- maturity: maintenance
- function: mocking, testing
- domain: testing, developer-tools
- platform: dotnet, cross-platform, windows
- tags: shims, isolation-framework, reflection-emit, static-method-mocking, csharp, unit-testing, linux, macos

## Member repositories
- tonerdo/pose (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.355290+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:35.852119+00:00, confidence not recorded.
  - readme: https://github.com/tonerdo/pose (fetched 2026-08-28T04:03:36.355290+00:00, sha e83027fb7bd1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
