Microsoft.Protocols.TestSuites.Common.SchemaValidation.InitValidateRecoder C# (CSharp) Method

InitValidateRecoder() private static method

Initialize the validate recorder.
private static InitValidateRecoder ( ) : void
return void
        private static void InitValidateRecoder()
        {
            // Initialize the result as "Success", if there are any validation error, this value will be changed by call back method.
            validationResult = ValidationResult.Success;
            if (null == xmlValidationWarnings)
            {
                xmlValidationWarnings = new List<ValidationEventArgs>();
            }

            xmlValidationWarnings.Clear();

            if (null == xmlValidationErrors)
            {
                xmlValidationErrors = new List<ValidationEventArgs>();
            }

            xmlValidationErrors.Clear();
        }