Ejemplo n.º 1
0
        public void PathHasFilter()
        {
            var param  = Expression.Parameter(typeof(bool), "b");
            var filter = Expression.Lambda(param, param);

            Assert.IsTrue(ExpandSegment.PathHasFilter(new []
                                                      { new ExpandSegment("first", null), new ExpandSegment("second", filter), new ExpandSegment("third", null) }));
        }
Ejemplo n.º 2
0
 public void PathDoesntHaveFilter()
 {
     Assert.IsFalse(ExpandSegment.PathHasFilter(new []
                                                { new ExpandSegment("first", null), new ExpandSegment("second", null), new ExpandSegment("third", null) }));
 }
Ejemplo n.º 3
0
 public void PathHasFilterException()
 {
     ExpandSegment.PathHasFilter(null);
 }