public void ValidateInvalidPropertyTypeUsingIsTypeOnInlineAnnotationModel() { var expectedErrors = new EdmLibTestErrors() { { null, null, EdmErrorCode.ExpressionNotValidForTheAssertedType } }; this.VerifySemanticValidation(ExpressionValidationTestModelBuilder.InvalidPropertyTypeUsingIsTypeOnInlineAnnotationModel(), expectedErrors); }
public void SerializeInvalidPropertyTypeUsingIsTypeOnInlineAnnotationModel() { this.SerializeAndVerifyAgainst(ExpressionValidationTestModelBuilder.InvalidPropertyTypeUsingIsTypeOnInlineAnnotationModel(), ExpressionValidationTestModelBuilder.InvalidPropertyTypeUsingIsTypeOnInlineAnnotationCsdl(EdmVersion.V40), EdmVersion.V40); }