/// <summary> /// Verify the response by sending the ROP RopWritePerUserInformation. /// </summary> /// <param name="response">The structure of ROP RopWritePerUserInformation response.</param> private void VerifyRopWritePerUserInformation(RopWritePerUserInformationResponse response) { if (response.ReturnValue == 0x0) { // Add the debug information this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCSTOR_R560"); // If the response can be parsed successfully and the return value is success, indicates the ROP's functionality is consistent with its description. this.Site.CaptureRequirement( 560, @"[In RopWritePerUserInformation ROP] RopWritePerUserInformation is used to establish the set of change numbers of messages the user has read in a specific public folder."); } }
/// <summary> /// Verify RopWritePerUserInformation Response /// </summary> /// <param name="ropWritePerUserInformationResponse">The response of RopWritePerUserInformation request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopWritePerUserInformation request</param> private void VerifyRopWritePerUserInformationResponse(RopWritePerUserInformationResponse ropWritePerUserInformationResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R524"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R524 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropWritePerUserInformationResponse.RopId.GetType(), 524, @"[In RopWritePerUserInformation ROP Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R526"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R526 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopWritePerUserInformation, ropWritePerUserInformationResponse.RopId, 526, @"[In RopWritePerUserInformation ROP Response Buffer] RopId (1 byte): For this operation[RopWritePerUserInformation], this field[RopId (1 byte)] is set to 0x64."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R527"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R527 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropWritePerUserInformationResponse.InputHandleIndex.GetType(), 527, @"[In RopWritePerUserInformation ROP Response Buffer] InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R528"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R528 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropWritePerUserInformationResponse.InputHandleIndex, 528, @"[In RopWritePerUserInformation ROP Response Buffer] InputHandleIndex (1 byte): This index 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_R529"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R529 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropWritePerUserInformationResponse.ReturnValue.GetType(), 529, @"[In RopWritePerUserInformation ROP Response Buffer] ReturnValue (4 bytes): An unsigned integer."); }