private static void ValidateCellRequestErrorCodeTypes(ErrorCodeType cellRequestErrorCode, ITestSite site)
{
if (cellRequestErrorCode == ErrorCodeType.CellRequestFail || cellRequestErrorCode == ErrorCodeType.IRMDocLibarysOnlySupportWebDAV)
{
// Verify MS-FSSHTTP requirement: MS-FSSHTTP_R772
site.CaptureRequirement(
"MS-FSSHTTP",
772,
@"[In CellRequestErrorCodeTypes][CellRequestErrorCodeTypes schema is:]
<xs:simpleType name=""CellRequestErrorCodeTypes"">
<xs:restriction base=""xs:string"">
<!--cell request fail-->
<xs:enumeration value=""CellRequestFail""/>
<!--cell request etag not matching-->
<xs:enumeration value=""IRMDocLibarysOnlySupportWebDAV""/>
</xs:restriction>
</xs:simpleType>");
// If the validation succeed, then the requirement MS-FSSHTTP_R773 can be captured.
site.CaptureRequirement(
"MS-FSSHTTP",
773,
@"[In CellRequestErrorCodeTypes] The value of CellRequestErrorCodeTypes MUST be one of the following:
[CellRequestFail, IRMDocLibarysOnlySupportWebDAV]");
}
}
}