public void TestInvalidExtensionAndSerializer() { scModel.ImplementationTechnology = new ServiceContractWCFExtensionProvider(); scModel.SerializerType = Microsoft.Practices.ServiceFactory.ServiceContracts.SerializerType.XmlSerializer; dcModel.ImplementationTechnology = new ServiceContractWCFExtensionProvider(); ValidationResults results = new ValidationResults(); TestImplementationTechnologyAndSerializerCrossModelValidator validator = new TestImplementationTechnologyAndSerializerCrossModelValidator(attributes); validator.TestDoValidate(part.Type, part, string.Empty, results); Assert.IsFalse(results.IsValid); }
public void TestInvalidExtensionAndSerializer() { scModel.ImplementationTechnology = new ServiceContractWCFExtensionProvider(); scModel.SerializerType = Microsoft.Practices.ServiceFactory.ServiceContracts.SerializerType.XmlSerializer; dcModel.ImplementationTechnology = new ServiceContractWCFExtensionProvider(); ValidationResults results = new ValidationResults(); TestImplementationTechnologyAndSerializerCrossModelValidator validator = new TestImplementationTechnologyAndSerializerCrossModelValidator(attributes); validator.TestDoValidate(part.Type, part, string.Empty, results); Assert.IsFalse(results.IsValid); }