Microsoft.Protocols.TestSuites.MS_MEETS.MS_MEETSAdapter.ValidateAndCaptureCommonMessageSyntax C# (CSharp) Method

ValidateAndCaptureCommonMessageSyntax() private method

Validate common message syntax to schema and capture related requirements.
private ValidateAndCaptureCommonMessageSyntax ( ) : void
return void
        private void ValidateAndCaptureCommonMessageSyntax()
        {
            // If the server response pass the validation successfully, we can make sure that the server responds with an correct message syntax, MS-MEETS_R8 and MS-MEETS_R2942 can be verified.
            bool isResponseValid = ValidationResult.Success == SchemaValidation.ValidationResult;
        
            // Verify MS-MEETS requirement: MS-MEETS_R8.
            Site.CaptureRequirementIfIsTrue(
                isResponseValid,
                8,
                @"[In Common Message Syntax]The syntax of the definitions uses XML schema as defined in [XMLSCHEMA1]and [XMLSCHEMA2], and Web Services Description Language (WSDL) as specified in [WSDL].");
        
            // Verify MS-MEETS requirement: MS-MEETS_R2942.  
            Site.CaptureRequirementIfIsTrue(
                isResponseValid,
                2942,
                @"[In Namespaces]This specification defines and references various XML namespaces by using the mechanisms specified in [XMLNS].");
        }