public void TestWriteIntRefEnum() { var test = new Mock <IMock>().CreateProxy(new MyMock(), new Aop.InterceptCompileSetting() { BoxArgument = true, StoreArgument = true }, new Aop.IInterceptor[1] { new Aop.IInterceptors.OutputAllArgsInterceptor() }); int a = 2; AEG ed = AEG.E; test.WriteRef(a, ref ed); }
public void TestWriteIntOutEnum2() { var test = new Mock <IMock>().CreateProxy(new MyMock(), new Aop.InterceptCompileSetting() { BoxArgument = false }, new Aop.IInterceptor[1] { new Aop.IInterceptors.OutputAllArgsInterceptor() }); int a = 2; AEG ed = AEG.E; test.WriteOut(a, out ed); }
public void TestCreateRefMyClassMockObject() { var mock = new Mock <RefMyClass>(); AEG moca = AEG.E; mock.Setup(x => x.Write(out moca)).Void((x) => { Console.WriteLine(x.GetType()); }); var test = mock.CreateIllusive(); //test.Id = 55; //Console.WriteLine(test.Id); //test.ActionCallBack += Test_ActionCallBack; //test.Write(new Program()); //test.ActionCallBack -= Test_ActionCallBack; //test.Write(new Program()); // object moca = new MyMock(); test.Write(out moca); var typeo = typeof(AEG); }
public override void Write(out AEG mock) { base.Write(out mock); }
public virtual void Write(out AEG mock) { mock = default(AEG); }
public void WriteRef(int abc, ref AEG ed) { mock.WriteRef(abc, ref ed); }
public void WriteOut(int abc, out AEG ed) { mock.WriteOut(abc, out ed); }
public void Write(int abc, AEG ed) { mock.Write(abc, ed); }
public void Write(Program p, AEG ed) { mock.Write(p, ed); }
public void Write(AEG ed) { mock.Write(ed); }