When Moles framework is used, it allows any function call to be mocked up. This is aquote from here: http://msdn.microsoft.com/en-us/library/ff798308.aspx
When execution enters a method, such as the DateTime.Now property getter, the Moles framework checks to see whether the test class has defined a detour for that method. If a detour is defined, the framework redirects the call to the detour delegate. If a detour is not defined, the call is directed to the real implementation of the method.
My question is: How do you define a detour in the test class?
FYI: This question addresses how Moles is internally implemented.