/// <summary> /// Verify the RopModifyRules operation. /// </summary> /// <param name="ropModifyRulesResponse">RopModifyRules response structure.</param> /// <param name="ropModifyRulesRequest">RopModifyRules request structure.</param> private void VerifyRopModifyRules(RopModifyRulesResponse ropModifyRulesResponse, RopModifyRulesRequest ropModifyRulesRequest) { // Add the debug information. Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXORULE_R678"); // Verify MS-OXORULE requirement: MS-OXORULE_R678. Site.CaptureRequirementIfAreEqual<byte>( ropModifyRulesRequest.InputHandleIndex, ropModifyRulesResponse.InputHandleIndex, 678, @"[In RopModifyRules ROP Response Buffer] InputHandleIndex (1 byte): The input handle in the response buffer MUST be the same as the index to the input handle in the request buffer for this operation [Processing RopModifyRules ROP Response]."); }
/// <summary> /// Verify RopModifyRules Response /// </summary> /// <param name="ropModifyRulesResponse">The response of RopModifyRules request</param> private void VerifyRopModifyRulesResponse(RopModifyRulesResponse ropModifyRulesResponse) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3588"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3588 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropModifyRulesResponse.RopId.GetType(), 3588, @"[In RopModifyRules ROP Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3590"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3590 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopModifyRules, ropModifyRulesResponse.RopId, 3590, @"[In RopModifyRules ROP Response Buffer, RopId (1 byte):] For this operation [RopModifyRules] this field is set to 0x41."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3591"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3591 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropModifyRulesResponse.InputHandleIndex.GetType(), 3591, @"[In RopModifyRules ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3594"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R3594 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropModifyRulesResponse.ReturnValue.GetType(), 3594, @"[In RopModifyRules ROP Response Buffer] ReturnValue (4 bytes): An unsigned integer."); }