public void TestOutMethod()
        {
            MockRepository mocks = new MockRepository();

            ITest mockProxy = mocks.StrictMock <ITest>();

            int intTest = 0;

            using (mocks.Record())
            {
                Expect.Call(delegate { mockProxy.Addnumber(out intTest); }).OutRef(4);
            }
            using (mocks.Playback())
            {
                mockProxy.Addnumber(out intTest);
                Assert.Equal(4, intTest);
            }
        }
        public void TestOutMethod()
        {
            int intTest = 0;

            ITest mockProxy = MockRepository.Mock <ITest>();

            mockProxy.Expect(x => x.Addnumber(out Arg <int> .Out(4).Dummy));

            mockProxy.Addnumber(out intTest);

            Assert.Equal(4, intTest);
        }
        public void TestOutMethod()
        {
            int intTest = 0;

            ITest mockProxy = MockRepository.Mock <ITest>();

            mockProxy.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);

            mockProxy.Expect(x => x.Addnumber(out Arg <int> .Out(4).Dummy));

            mockProxy.Addnumber(out intTest);

            Assert.Equal(4, intTest);
        }