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) }));
        }
 public void PathDoesntHaveFilter()
 {
     Assert.IsFalse(ExpandSegment.PathHasFilter(new []
                                                { new ExpandSegment("first", null), new ExpandSegment("second", null), new ExpandSegment("third", null) }));
 }
 public void PathHasFilterException()
 {
     ExpandSegment.PathHasFilter(null);
 }