This is a simple framework to mock C# classes/interfaces, the idea is based on my C++ Mockingbird but since C# does not support preprocessors this framework depends on reflection to emit MSIL (Microsoft Intermediate Language) code on fly to build new types dynamically at the run time using ILGenerator.Emit
method.
Once you build a new type you can assign methods delegates and set properties values as needed, please see tests.