Example #1
0
 public void Should_handle_bad_expressions()
 {
     Assert.Throws <ArgumentException>(() => SafeProperty <A> .GetGetProperty(x => true));
 }
Example #2
0
 public void Should_handle_method_expressions_with_exception()
 {
     Assert.Throws <ArgumentException>(() => SafeProperty <A> .GetGetProperty(x => GetString(x)));
 }
Example #3
0
 public SafeGetNestedPropertyRunner()
 {
     _accessor = SafeProperty <A> .GetGetProperty(x => x.TheB.TheC.Value);
 }