public void TestAllInterfaceCriticalModel() { var expectedErrors = new EdmLibTestErrors() { { null, null, EdmErrorCode.InterfaceCriticalEnumerableMustNotHaveNullElements }, { null, null, EdmErrorCode.InterfaceCriticalKindValueMismatch }, { null, null, EdmErrorCode.InterfaceCriticalKindValueUnexpected }, { null, null, EdmErrorCode.InterfaceCriticalNavigationPartnerInvalid }, { null, null, EdmErrorCode.InterfaceCriticalPropertyValueMustNotBeNull }, { null, null, EdmErrorCode.InterfaceCriticalPropertyValueMustNotBeNull }, }; var model = InterfaceCriticalModelBuilder.AllInterfaceCriticalModel(); this.ValidateUsingEdmValidator(model, expectedErrors); this.ValidateUsingEdmValidator(model, EdmConstants.EdmVersion4, expectedErrors); this.ValidateUsingEdmValidator(model, ValidationRuleSet.GetEdmModelRuleSet(EdmConstants.EdmVersion4), expectedErrors); }