private void VerifyResponseMetaTags(List<string> metaTags)
{
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1130");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1130
bool isVerifiedR1130 = false;
for (int i = 0; i < metaTags.Count; i++)
{
if (this.metaTagsList.Contains(metaTags[i]))
{
isVerifiedR1130 = true;
}
else
{
isVerifiedR1130 = false;
break;
}
}
this.Site.CaptureRequirementIfIsTrue(
isVerifiedR1130,
1130,
@"[In Response Meta-Tags] The protocol defines three meta-tags [PROCESSING, PENDING, DONE] that are used to inform the client as to the state of processing a request on the server.");
// The structure of response body is parsed according to the request of this Specification, if the code run to here and passed,
// that means R1131 is verified successfully.
this.Site.CaptureRequirement(
1131,
@"[In Response Meta-Tags] A meta-tag is returned at the beginning of the response body.");
}