Ejemplo n.º 1
0
        public static void Nested()
        {
            Expression <Func <Nested, string[]> > to = o => o.Options.Multiple;

            PropertySelector
            .Do(to)
            .Should()
            .Be("Options:Multiple");
        }
Ejemplo n.º 2
0
        public static void MethodFromBody()
        {
            Expression <Func <Nested, string> > to = o => o.ToString();
            Action test = () => PropertySelector.Do(to);

            test
            .Should()
            .Throw <ArgumentException>();
        }
Ejemplo n.º 3
0
        public static void Simple()
        {
            Expression <Func <Simple, string[]> > to = o => o.Multiple;

            PropertySelector
            .Do(to)
            .Should()
            .Be("Multiple");
        }