knockoff

Official

Reuse test stubs with zero-runtime overhead.

AuthorNeatooDotNet
Version1.0.0
Installs0

System Documentation

What problem does it solve?

KnockOff simplifies creating reusable test stubs for interfaces and classes in .NET tests.

Core Features & Use Cases

  • Standalone and inline stub patterns for flexible testing across files or within a single test class.
  • Rich interceptor API including Return, Call, When, Verify, Verifiable, Reset, and support for generic, open generic, and delegate patterns.
  • Built-in strict mode, source delegation, and cross-pattern consistency to simplify migration from Moq.

Quick Start

To begin, declare a stub with [KnockOff] (or inline pattern), configure a method to return a value, then exercise the interface and verify via Verify().

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: knockoff
Download link: https://github.com/NeatooDotNet/KnockOff/archive/main.zip#knockoff

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.