Пример #1
0
        public void RemotingOutString()
        {
            string s = "";

            remotingTarget.OutStr(out s);
            LastCall.Do(new OutStrDel(OutSayHello));
            mocks.ReplayAll();
            remotingTarget.OutStr(out s);
            Assert.Equal("Hello", s);
        }
Пример #2
0
        public void RemotingOutString()
        {
            string s = "";

            remotingTarget.Expect(x => x.OutStr(out s))
            .DoInstead(new OutStrDel(OutSayHello));

            remotingTarget.OutStr(out s);

            Assert.Equal("Hello", s);
        }