Esempio n. 1
0
        internal static Action <TParam1> CreateSpy <TParam1>(out Spy spy)
        {
            Spy newSpy = null;
            Action <TParam1> result = null;

            result = p1 =>
            {
                SpyExecutionHelper.InnerHandleCall(newSpy, result.Method, result.Target, new object[] { p1 });
            };

            return(MakeSpy(result, out newSpy, out spy));
        }
Esempio n. 2
0
        internal static Action CreateSpy(out Spy spy)
        {
            Spy    newSpy = null;
            Action result = null;

            result = () =>
            {
                SpyExecutionHelper.InnerHandleCall(newSpy, result.Method, result.Target, new object[0]);
            };

            return(MakeSpy(result, out newSpy, out spy));
        }
Esempio n. 3
0
        internal static Action <TParam1, TParam2, TParam3, TParam4, TParam5> CreateSpy <TParam1, TParam2, TParam3, TParam4, TParam5>(out Spy spy)
        {
            Spy newSpy = null;
            Action <TParam1, TParam2, TParam3, TParam4, TParam5> result = null;

            result = (p1, p2, p3, p4, p5) =>
            {
                SpyExecutionHelper.InnerHandleCall(newSpy, result.Method, result.Target, new object[] { p1, p2, p3, p4, p5 });
            };

            return(MakeSpy(result, out newSpy, out spy));
        }
Esempio n. 4
0
        internal static Func <TParam1, TResult> CreateSpyFunc <TParam1, TResult>(out Spy spy)
        {
            Spy newSpy = null;
            Func <TParam1, TResult> result = null;

            result = p1 =>
            {
                return((TResult)SpyExecutionHelper.InnerHandleCall(newSpy, result.Method, result.Target, new object[] { p1 }));
            };

            return(MakeSpy(result, out newSpy, out spy));
        }
Esempio n. 5
0
 public static TR Func0 <TR>(MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[0], originalMethod));
 }
Esempio n. 6
0
 public static void Action8 <TP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9, TP10, TP11, TP12, TP13, TP14, TP15, TP16>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8, TP9 p9, TP10 p10, TP11 p11, TP12 p12, TP13 p13, TP14 p14, TP15 p15, TP16 p16, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16 }, originalMethod);
 }
Esempio n. 7
0
 public static void Action8 <TP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8, TP9 p9, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6, p7, p8, p9 }, originalMethod);
 }
Esempio n. 8
0
 public static void Action6 <TP1, TP2, TP3, TP4, TP5, TP6>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6 }, originalMethod);
 }
Esempio n. 9
0
 public static TR Func1 <TR, TP1>(TP1 p1, MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[] { p1 }, originalMethod));
 }
Esempio n. 10
0
 public static void Action2 <TP1, TP2>(TP1 p1, TP2 p2, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1, p2 }, originalMethod);
 }
Esempio n. 11
0
 public static TR Func8 <TR, TP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9, TP10, TP11, TP12, TP13, TP14, TP15>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8, TP9 p9, TP10 p10, TP11 p11, TP12 p12, TP13 p13, TP14 p14, TP15 p15, MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15 }, originalMethod));
 }
Esempio n. 12
0
 public static void Action1 <TP1>(TP1 p1, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1 }, originalMethod);
 }
Esempio n. 13
0
 public static TR Func8 <TR, TP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, TP7 p7, TP8 p8, TP9 p9, MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6, p7, p8, p9 }, originalMethod));
 }
Esempio n. 14
0
 public static TR Func6 <TR, TP1, TP2, TP3, TP4, TP5, TP6>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, TP5 p5, TP6 p6, MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4, p5, p6 }, originalMethod));
 }
Esempio n. 15
0
 public static TR Func3 <TR, TP1, TP2, TP3>(TP1 p1, TP2 p2, TP3 p3, MethodBase originalMethod)
 {
     return((TR)SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3 }, originalMethod));
 }
Esempio n. 16
0
 public static void Action4 <TP1, TP2, TP3, TP4>(TP1 p1, TP2 p2, TP3 p3, TP4 p4, MethodBase originalMethod)
 {
     SpyExecutionHelper.HandleCall(new object[] { p1, p2, p3, p4 }, originalMethod);
 }
Esempio n. 17
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
        public static void Action0(MethodBase originalMethod)
        {
            SpyExecutionHelper.HandleCall(new object[0], originalMethod);
        }