public void AnyNonBoundOperationWithAnEntitySetPathSpecifiedShouldFailWithError() { EdmFunction function = new EdmFunction("ns", "GetStuff", EdmCoreModel.Instance.GetString(false), false /*isBound*/, new EdmPathExpression("path1", "path2"), false); function.AddParameter("param", DefaultValidCollectionEntityTypeRef); EdmModel model = new EdmModel(); model.AddElement(function); ValidateErrorInList( model, function, EdmErrorCode.OperationCannotHaveEntitySetPathWithUnBoundOperation, Strings.EdmModel_Validator_Semantic_OperationCannotHaveEntitySetPathWithUnBoundOperation(function.Name)); }