public void MockNormalInterface_CanSetProperties() { ITestNormal test = MockRepository.Mock<ITestNormal>(); test.ExpectProperty(x => x.Foo); test.Foo = 10; Assert.Equal(10, test.Foo); test.VerifyExpectations(); }
public void MockNormalInterface_CanSetProperties() { ITestNormal test = MockRepository.Mock <ITestNormal>(); test.SetUnexpectedBehavior(UnexpectedCallBehaviors.BaseOrDefault); test.ExpectProperty(x => x.Foo); test.Foo = 10; Assert.Equal(10, test.Foo); test.VerifyExpectations(); }