Microsoft.Protocols.TestSuites.MS_LISTSWS.MS_LISTSWSAdapter.LogSchemaValidationErrors C# (CSharp) Method

LogSchemaValidationErrors() private method

A method is used to log all the schema validation errors and warnings.
private LogSchemaValidationErrors ( ) : void
return void
        private void LogSchemaValidationErrors()
        {
            // Log all the schema validation warnings if exist
            foreach (ValidationEventArgs warning in SchemaValidation.XmlValidationWarnings)
            {
                this.Site.Log.Add(
                                     LogEntryKind.Warning,
                                    "Schema validation Warning:{0} occurs in the position ({1},{2})",
                                    warning.Exception.Message,
                                    warning.Exception.LineNumber,
                                    warning.Exception.LinePosition);
            }

            // Log all the schema validation errors if exist
            foreach (ValidationEventArgs error in SchemaValidation.XmlValidationErrors)
            {
                this.Site.Log.Add(
                                    LogEntryKind.TestError,
                                    "Schema validation Error:{0} occurs in the position ({1},{2})",
                                    error.Exception.Message,
                                    error.Exception.LineNumber,
                                    error.Exception.LinePosition);
            }
        }
MS_LISTSWSAdapter