コード例 #1
0
        public void DoValidateSucceedsForNonEmptyPMT()
        {
            ValidationResults results = new ValidationResults();
            TestCrossDataContractModelTIandPMTValidator target = new TestCrossDataContractModelTIandPMTValidator(attributes);

            target.TestDoValidate(fault.Type, fault, string.Empty, results);

            Assert.IsTrue(results.IsValid);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }