public static int Intercept <T>(object instance) { return((int)Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { })); }
public void Returns(object retVal) { _retVal = retVal; Interceptor.SetIntercept(_setupExpr, @params => retVal); }
public static object Intercept <T>(object arg1, short arg2) { return(Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { arg1, arg2 })); }
public void Start() { Interceptor.Start(this); }