public static void Nested() { Expression <Func <Nested, string[]> > to = o => o.Options.Multiple; PropertySelector .Do(to) .Should() .Be("Options:Multiple"); }
public static void MethodFromBody() { Expression <Func <Nested, string> > to = o => o.ToString(); Action test = () => PropertySelector.Do(to); test .Should() .Throw <ArgumentException>(); }
public static void Simple() { Expression <Func <Simple, string[]> > to = o => o.Multiple; PropertySelector .Do(to) .Should() .Be("Multiple"); }