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