Skip to content

Glossary: C# Beyond the Basics

fake

Also written: fakes, stand-in

A small class written for tests that stands in for a real one, such as `FakeRate` with a fixed price. It works because code depends on the interface, not the real class.

Where the book teaches it

Related terms

interfaceMoqunit test