public void CannotGoToPropetyOnEntityReference()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People(7)/MyDog/$ref/Color", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.RefSegment));
 }
 public void EntityReferenceCannotAppearAfterAComplexProperty()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("People(1)/MyAddress/$ref", ODataErrorStrings.PathParser_EntityReferenceNotSupported("MyAddress"));
 }
 public void CountCannotAppearAfterEntityReferenceCollectionProperties()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("Dogs(1)/MyPeople/$ref/$count", ODataErrorStrings.RequestUriProcessor_MustBeLeafSegment(UriQueryConstants.RefSegment));
 }
 public void EntityReferenceCannotAppearAfterAnEntitySet()
 {
     // TODO: We can improve error message drastically when we refactor path parsing
     PathFunctionalTestsUtil.RunParseErrorPath("People/$ref", ODataErrorStrings.PathParser_EntityReferenceNotSupported("People"));
 }
 public void KeyLookupCannotAppearAfterEntityReference()
 {
     PathFunctionalTestsUtil.RunParseErrorPath("Dogs(1)/$ref(1)", ODataErrorStrings.RequestUriProcessor_SyntaxError);
 }