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

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

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

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