public static AndConstraint <ValueSegment> ShouldBeValueSegment(this ODataPathSegment segment) { segment.Should().BeOfType <ValueSegment>(); return(new AndConstraint <ValueSegment>(segment.As <ValueSegment>())); }