Moles is a lightweight framework for test stubs and detours in .NET that is enterly based on delegates. Moles was designed provide a minimal overhead to the Pex white box analysis, and it encourages programmatic models rather than record/replay tests. Moles may be used to detour any .NET method, including non-virtual/static methods in sealed types.
Read more: MS Research