public void DoValidateSucceedsForNonEmptyPMT() { ValidationResults results = new ValidationResults(); TestCrossDataContractModelTIandPMTValidator target = new TestCrossDataContractModelTIandPMTValidator(attributes); target.TestDoValidate(fault.Type, fault, string.Empty, results); Assert.IsTrue(results.IsValid); }
public void DoValidateFailsForEmptyPMT() { dcModel.ProjectMappingTable = string.Empty; ValidationResults results = new ValidationResults(); TestCrossDataContractModelTIandPMTValidator target = new TestCrossDataContractModelTIandPMTValidator(attributes); target.TestDoValidate(fault.Type, fault, string.Empty, results); Assert.IsFalse(results.IsValid); }
public void DoValidateFailsForEmptyImplementationTechnology() { dcModel.ImplementationTechnology = null; ValidationResults results = new ValidationResults(); TestCrossDataContractModelTIandPMTValidator target = new TestCrossDataContractModelTIandPMTValidator(attributes); target.TestDoValidate(fault.Type, fault, string.Empty, results); Assert.IsFalse(results.IsValid); }