public void CanRead_WithNullBusinessObject_ReturnsValue() { using (_mockRepository.Ordered()) { _innerStrategy1.Expect(mock => mock.CanRead(null, _property)).Return(true); _innerStrategy2.Expect(mock => mock.CanRead(null, _property)).Return(true); _innerStrategy3.Expect(mock => mock.CanRead(null, _property)).Return(true); } _mockRepository.ReplayAll(); var result = _strategy.CanRead(null, _property); Assert.That(result, Is.True); _mockRepository.VerifyAll(); }
public void CanRead_WithoutStrategies_ReturnsTrue() { var strategy = new CompundBindablePropertyReadAccessStrategy(Enumerable.Empty <IBindablePropertyReadAccessStrategy>()); var result = strategy.CanRead(_businessObject, _property); Assert.That(result, Is.True); }