Created
September 11, 2012 07:28
-
-
Save royosherove/3696673 to your computer and use it in GitHub Desktop.
Build your own typemock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); }; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
be sure to add references to typemock c# and core dll