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