private void VerifyRopRestrictSuccessResponse(RopRestrictResponse ropRestrictResponse, byte inputHandleIndex)
{
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1141");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1141
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte),
ropRestrictResponse.RopId.GetType(),
1141,
@"[In RopRestrict ROP Success Response Buffer] RopId (1 byte): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1143");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1143
Site.CaptureRequirementIfAreEqual<byte>(
(byte)RopId.RopRestrict,
ropRestrictResponse.RopId,
1143,
@"[In RopRestrict ROP Success Response Buffer] RopId (1 byte): For this operation[RopRestrict], this field[RopId (1 byte)] is set to 0x14.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1144");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1144
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte),
ropRestrictResponse.InputHandleIndex.GetType(),
1144,
@"[In RopRestrict ROP Success Response Buffer] InputHandleIndex (1 byte): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1145");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1145
Site.CaptureRequirementIfAreEqual<byte>(
inputHandleIndex,
ropRestrictResponse.InputHandleIndex,
1145,
@"[In RopRestrict ROP Success Response Buffer] InputHandleIndex (1 byte): This index that MUST be set to the value specified in the InputHandleIndex field in the request.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1146");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1146
Site.CaptureRequirementIfAreEqual<Type>(
typeof(uint),
ropRestrictResponse.ReturnValue.GetType(),
1146,
@"[In RopRestrict ROP Success Response Buffer] ReturnValue (4 bytes): An unsigned integer.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1148");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1148
Site.CaptureRequirementIfAreEqual<uint>(
SuccessReturnValue,
ropRestrictResponse.ReturnValue,
1148,
@"[In RopRestrict ROP Success Response Buffer] ReturnValue (4 bytes): For this response[Success Response], this field is set to 0x00000000.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1149");
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1149
Site.CaptureRequirementIfAreEqual<Type>(
typeof(byte),
ropRestrictResponse.TableStatus.GetType(),
1149,
@"[In RopRestrict ROP Success Response Buffer] TableStatus (1 byte): An enumeration.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1150,TableStatus:{0}", ropRestrictResponse.TableStatus);
// Verify MS-OXCROPS requirement: MS-OXCROPS_R1150
bool isVerifyR1150 = ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatComplete)) == ((byte)TableStatus.TblstatComplete))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatSorting)) == ((byte)TableStatus.TblstatSorting))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatSortError)) == ((byte)TableStatus.TblstatSortError))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatSettingCols)) == ((byte)TableStatus.TblstatSettingCols))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatSetColError)) == ((byte)TableStatus.TblstatSetColError))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatRestricting)) == ((byte)TableStatus.TblstatRestricting))
|| ((ropRestrictResponse.TableStatus & ((byte)TableStatus.TblstatRestrictError)) == ((byte)TableStatus.TblstatRestrictError));
Site.CaptureRequirementIfIsTrue(
isVerifyR1150,
1150,
@"[In RopRestrict ROP Success Response Buffer] TableStatus (1 byte): The possible values[the value of TBLSTAT_COMPLETE is 0x00, the value of TBLSTAT_SORTING is 0x09, the value of TBLSTAT_SORT_ERROR is 0x0A, the value of TBLSTAT_SETTING_COLS is 0x0B, the value of TBLSTAT_SETCOL_ERROR is 0x0D, the value of TBLSTAT_RESTRICTING is 0x0E and the value of TBLSTAT_RESTRICT_ERROR is 0x0F] for this enumeration are specified in [MS-OXCTABL] section 2.2.2.1.3.");
}