Пример #1
0
        private static void MeasureValidation()
        {
            ValidatorBenchmark.MeasureValidation(
                @"XML\schema_envelope.xml",
                @"XML\doc_envelope_valid.xml",
                "Simple schema and valid document."
                + " Both validator must perform full validation.");

            ValidatorBenchmark.MeasureValidation(
                @"XML\schema_envelope.xml",
                @"XML\doc_envelope_invalid_further.xml",
                "Simple schema and invalid document with violations further inside the document."
                + " SchemaTron with partial validation can stop at the first assert.");

            ValidatorBenchmark.MeasureValidation(
                @"XML\schema_envelope.xml",
                @"XML\doc_envelope_bad_root.xml",
                "Simple schema and invalid document with a violation at the first element."
                + " SchemaTron with partial validation can stop right at the first element.");
        }
Пример #2
0
 private static void MeasureCreatingValidator()
 {
     ValidatorBenchmark.MeasureCreatingValidator(
         @"XML\schema_envelope.xml",
         "Simple schema describing a SOAP envelope.");
 }