public void ValidateInvalidTypeUsingCastCollectionModel()
        {
            var expectedErrors = new EdmLibTestErrors()
            {
                { null, null, EdmErrorCode.ExpressionNotValidForTheAssertedType }
            };

            this.VerifySemanticValidation(ExpressionValidationTestModelBuilder.InvalidTypeUsingCastCollectionModel(), expectedErrors);
        }
 public void SerializeInvalidTypeUsingCastCollectionModel()
 {
     this.SerializeAndVerifyAgainst(ExpressionValidationTestModelBuilder.InvalidTypeUsingCastCollectionModel(), ExpressionValidationTestModelBuilder.InvalidTypeUsingCastCollectionCsdl(EdmVersion.V40), EdmVersion.V40);
 }