public void ValidateCastNullableToNonNullableOnInlineAnnotationModel() { var expectedErrors = new EdmLibTestErrors() { { null, null, EdmErrorCode.ExpressionNotValidForTheAssertedType } }; this.VerifySemanticValidation(ExpressionValidationTestModelBuilder.CastNullableToNonNullableOnInlineAnnotationModel(), expectedErrors); }
public void SerializeCastNullableToNonNullableOnInlineAnnotationModel() { this.SerializeAndVerifyAgainst(ExpressionValidationTestModelBuilder.CastNullableToNonNullableOnInlineAnnotationModel(), ExpressionValidationTestModelBuilder.CastNullableToNonNullableOnInlineAnnotationCsdl(EdmVersion.V40), EdmVersion.V40); }