/// <summary> /// Verify the ServerVersionInfo structure. /// </summary> /// <param name="serverVersionInfo">A ServerVersionInfo instance.</param> /// <param name="isSchemaValidated">Indicate whether the schema is verified.</param> private void VerifyServerVersionInfo(ServerVersionInfo serverVersionInfo, bool isSchemaValidated) { Site.Assert.IsTrue(isSchemaValidated, "The schema should be validated."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1339"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1339 Site.CaptureRequirementIfIsNotNull( serverVersionInfo, "MS-OXWSCDATA", 1339, @"[In t:ServerVersionInfo Element] <xs:element name=""t:ServerVersionInfo""> <xs:complexType> <xs:attribute name=""MajorVersion"" type=""xs:int"" use=""optional"" /> <xs:attribute name=""MinorVersion"" type=""xs:int"" use=""optional"" /> <xs:attribute name=""MajorBuildNumber"" type=""xs:int"" use=""optional"" /> <xs:attribute name=""MinorBuildNumber"" type=""xs:int"" use=""optional"" /> <xs:attribute name=""Version"" type=""xs:string"" use=""optional"" /> </xs:complexType> </xs:element>"); if (serverVersionInfo.MajorVersionSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1456"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1456 // If MajorVersion element is specified, and the schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1456, "[In t:ServerVersionInfo Element] MajorVersion type is xs:int."); } if (serverVersionInfo.MinorVersionSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1457"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1457 // If MinorVersion element is specified, and the schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1457, "[In t:ServerVersionInfo Element] MinorVersion type is xs:int."); } if (serverVersionInfo.MajorBuildNumberSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1458"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1458 // If MajorBuildNumber element is specified, and the schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1458, "[In t:ServerVersionInfo Element] MajorBuildNumber type is xs:int."); } if (serverVersionInfo.MinorBuildNumberSpecified) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1459"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1459 // If MinorBuildNumber element is specified, and the schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1459, "[In t:ServerVersionInfo Element] MinorBuildNumber type is xs:int."); } if (serverVersionInfo.Version != null) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSCDATA_R1460"); // Verify MS-OXWSCORE requirement: MS-OXWSCDATA_R1460 // If Version element is specified, and the schema is validated, // this requirement can be validated. Site.CaptureRequirement( "MS-OXWSCDATA", 1460, "[In t:ServerVersionInfo Element] Version type is xs:string."); } }