Skip to content

Instantly share code, notes, and snippets.

@royosherove
Created September 11, 2012 07:28
Show Gist options
  • Save royosherove/3696673 to your computer and use it in GitHub Desktop.
Save royosherove/3696673 to your computer and use it in GitHub Desktop.
Build your own typemock
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TypeMock.Internal.Hooks;
namespace MyInterceptor
{
public class Class1
{
public void runthismethodwithtypemockenabled()
{
EventTunnel.ShouldInterceptDecision = delegate(TMShouldInterceptEventArgs args) { Console.WriteLine(args.MethodName); };
}
}
}
@royosherove
Copy link
Author

be sure to add references to typemock c# and core dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment