Example #1
0
 public RefUtilsAopProxy(
     IRefUtils realInstance,
     InterceptionHandler interceptionHandler)
 {
     _realInstance        = realInstance;
     _interceptionHandler = interceptionHandler;
 }
Example #2
0
        public void TestMethod_WithReturnType_IncludesRefParameter_MockBehavior_Loose()
        {
            var       stub     = new StubIRefUtils(MockBehavior.Loose);
            IRefUtils refUtils = stub;
            int       i1       = 1;
            int       i2       = 2;

            refUtils.Swap(ref i1, ref i2);
            Assert.AreEqual(1, i1);
            Assert.AreEqual(2, i2);
        }