コード例 #1
0
 public MockWithRefAndOutParams()
 {
     target = MockRepository.Mock <IRefAndOut>();
     target.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
     remotingTarget = MockRepository.Mock <RemotingProxyWithOutRef>();
     remotingTarget.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault);
 }
コード例 #2
0
 public MockWithRefAndOutParams()
 {
     mocks = new MockRepository();
     target = (IRefAndOut)mocks.StrictMock(typeof(IRefAndOut));
     remotingTarget = mocks.StrictMock<RemotingProxyWithOutRef>();
 }
コード例 #3
0
 public MockWithRefAndOutParams()
 {
     target         = MockRepository.Mock <IRefAndOut>();
     remotingTarget = MockRepository.Mock <RemotingProxyWithOutRef>();
 }
コード例 #4
0
 public MockWithRefAndOutParams()
 {
     mocks          = new MockRepository();
     target         = (IRefAndOut)mocks.StrictMock(typeof(IRefAndOut));
     remotingTarget = mocks.StrictMock <RemotingProxyWithOutRef>();
 }
コード例 #5
0
		public MockWithRefAndOutParams()
		{
			target = MockRepository.Mock<IRefAndOut>();
			remotingTarget = MockRepository.Mock<RemotingProxyWithOutRef>();
		}
コード例 #6
0
 public MockWithRefAndOutParams()
 {
     target = (IRefAndOut)MockRepository.GenerateStrictMock(typeof(IRefAndOut), null, null);
     remotingTarget = MockRepository.GenerateStrictMock<RemotingProxyWithOutRef>();
 }