public void GetValue()
        {
            using (_mockRepository.Ordered())
            {
                ExpectOnceOnPropertyIsAccessible(true);
                ExpectOnceOnBusinessObjectWithIdentityGetProperty(100);
            }
            _mockRepository.ReplayAll();

            object actual = _result.GetValue();

            _mockRepository.VerifyAll();
            Assert.That(actual, Is.EqualTo(100));
        }
Ejemplo n.º 2
0
 private object GetResultValue(IBusinessObjectPropertyPathResult result, BocListRow row)
 {
     try
     {
         return(result.GetValue());
     }
     catch (Exception e)
     {
         s_log.ErrorFormat(
             e, "Exception thrown while reading the value for property path '{0}' in row {1} of BocList.", _propertyPath.Identifier, row.Index);
         return(null);
     }
 }
Ejemplo n.º 3
0
 public void GetValue()
 {
     Assert.That(_result.GetValue(), Is.Null);
 }