/// <summary> /// Verify the response by sending the ROP RopSetReceiveFolder. /// </summary> /// <param name="response">The structure of ROP RopSetReceiveFolder response.</param> private void VerifyRopSetReceiveFolder(RopSetReceiveFolderResponse response) { // The returnValue is 0 to indicate that the response is successful. if (response.ReturnValue == 0) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCSTOR_R241"); // 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( 241, @"[In RopSetReceiveFolder ROP] RopSetReceiveFolder is used to establish the Receive folder for messages of a given message class."); } }
/// <summary> /// Verify RopSetReceiveFolder Response /// </summary> /// <param name="ropSetReceiveFolderResponse">The response of RopSetReceiveFolder request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopSetReceiveFolder request</param> private void VerifyRopSetReceiveFolderResponse(RopSetReceiveFolderResponse ropSetReceiveFolderResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R181"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R181 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropSetReceiveFolderResponse.RopId.GetType(), 181, @"[In RopSetReceiveFolder ROP Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R183"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R183 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopSetReceiveFolder, ropSetReceiveFolderResponse.RopId, 183, @"[In RopSetReceiveFolder ROP Response Buffer] RopId (1 byte): For this operation[RopSetReceiveFolder], this field[RopId (1 byte)] is set to 0x26."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R184"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R184 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropSetReceiveFolderResponse.InputHandleIndex.GetType(), 184, @"[In RopSetReceiveFolder ROP Response Buffer] InputHandleIndex (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R185"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R185 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropSetReceiveFolderResponse.InputHandleIndex, 185, @"[In RopSetReceiveFolder 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_R186"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R186 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropSetReceiveFolderResponse.ReturnValue.GetType(), 186, @"[In RopSetReceiveFolder ROP Response Buffer] ReturnValue (4 bytes): An unsigned integer."); }