public void ExpandPathShouldNotAllowValueSegment() { Action createWithValueSegment = () => new ODataExpandPath(new ValueSegment(HardCodedTestModel.GetPersonType()), this.navigationSegment); createWithValueSegment.ShouldThrow <ODataException>().WithMessage(ODataErrorStrings.ODataExpandPath_InvalidExpandPathSegment("ValueSegment")); }
public void ExpandPathShouldNotAllowCountSegment() { Action createWithCountSegment = () => new ODataExpandPath(CountSegment.Instance, this.navigationSegment); createWithCountSegment.ShouldThrow <ODataException>().WithMessage(ODataErrorStrings.ODataExpandPath_InvalidExpandPathSegment("CountSegment")); }