/// <summary> /// Verify RopGetValidAttachments Failure Response /// </summary> /// <param name="ropGetValidAttachmentsResponse">The response of RopGetValidAttachments request</param> /// <param name="inputHandleIndex">The field of InputHandleIndex in RopGetValidAttachments request</param> private void VerifyRopGetValidAttachmentsFailureResponse(RopGetValidAttachmentsResponse ropGetValidAttachmentsResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2339"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2339 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropGetValidAttachmentsResponse.RopId.GetType(), 2339, @"[In RopGetValidAttachments ROP Failure Response Buffer]RopId(1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2347"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2347 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopGetValidAttachments, ropGetValidAttachmentsResponse.RopId, 2347, @"[In RopGetValidAttachments ROP Failure Response Buffer,RopId(1 byte)]: For this operation[RopGetValidAttachments], this field is set to 0x52."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2341"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2341 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropGetValidAttachmentsResponse.InputHandleIndex.GetType(), 2341, @"[In RopGetValidAttachments ROP Failure Response Buffer]InputHandleIndex(1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2342"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2342 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropGetValidAttachmentsResponse.InputHandleIndex, 2342, @"[In RopGetValidAttachments ROP Failure 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_R2344"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2344 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropGetValidAttachmentsResponse.ReturnValue.GetType(), 2344, @"[In RopGetValidAttachments ROP Failure Response Buffer]ReturnValue(4 bytes):An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2346"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2346 Site.CaptureRequirementIfAreNotEqual<uint>( SuccessReturnValue, ropGetValidAttachmentsResponse.ReturnValue, 2346, @"[In RopGetValidAttachments ROP Failure Response Buffer,ReturnValue(4 bytes)]For this response, this field is set to a value other than 0x00000000."); }
/// <summary> /// Verify RopGetValidAttachments Success Response /// </summary> /// <param name="ropGetValidAttachmentsResponse">The response of RopGetValidAttachments request</param> /// <param name="inputHandleIndex">The field of inputHandleIndex in RopGetAttachmentTable request</param> private void VerifyRopGetValidAttachmentsSuccessResponse(RopGetValidAttachmentsResponse ropGetValidAttachmentsResponse, byte inputHandleIndex) { // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2324"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2324 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropGetValidAttachmentsResponse.RopId.GetType(), 2324, @"[in RopGetValidAttachments ROP Success Response Buffer] RopId (1 byte): An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2327"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2327 Site.CaptureRequirementIfAreEqual<byte>( (byte)RopId.RopGetValidAttachments, ropGetValidAttachmentsResponse.RopId, 2327, @"[in RopGetValidAttachments ROP Success Response Buffer,Ropid(1 byte)]. For this operation[RopGetValidAttachments], this field is set to 0x52."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2328"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2328 Site.CaptureRequirementIfAreEqual<Type>( typeof(byte), ropGetValidAttachmentsResponse.InputHandleIndex.GetType(), 2328, @"[in RopGetValidAttachments ROP Success Response Buffer,InputHandleIndex(1 byte)].An unsigned integer."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2329"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2329 Site.CaptureRequirementIfAreEqual<byte>( inputHandleIndex, ropGetValidAttachmentsResponse.InputHandleIndex, 2329, @"[in RopGetValidAttachments ROP Success 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_R2331"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2331 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint), ropGetValidAttachmentsResponse.ReturnValue.GetType(), 2331, @"[in RopGetValidAttachments ROP Success Response Buffer] ReturnValue (4 bytes): An unsigned integer. "); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2333"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2333 Site.CaptureRequirementIfAreEqual<uint>( SuccessReturnValue, ropGetValidAttachmentsResponse.ReturnValue, 2333, @"[in RopGetValidAttachments ROP Success Response Buffer, ReturnValue (4 bytes)]For this response, this field is set to 0x00000000."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2334"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2334 Site.CaptureRequirementIfAreEqual<Type>( typeof(ushort), ropGetValidAttachmentsResponse.AttachmentIdCount.GetType(), 2334, @"[in RopGetValidAttachments ROP Success Response Buffer]AttachmentIdCount (4 bytes):An unsigned integer. "); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2335"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2335 Site.CaptureRequirementIfAreEqual<int>( ropGetValidAttachmentsResponse.AttachmentIdArray.Length, ropGetValidAttachmentsResponse.AttachmentIdCount, 2335, @"[in RopGetValidAttachments ROP Success Response Buffer,AttachmentIdCount (4 bytes)]This value specifies the number of integers in the AttachmentIdArray field."); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2336"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2336 Site.CaptureRequirementIfAreEqual<Type>( typeof(uint[]), ropGetValidAttachmentsResponse.AttachmentIdArray.GetType(), 2336, @"[in RopGetValidAttachments ROP Success Response Buffer,AttachmentIdArray (variable)]An array of 32-bit integers. "); // Add the debug information Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2337"); // Verify MS-OXCROPS requirement: MS-OXCROPS_R2337 Site.CaptureRequirementIfAreEqual<int>( ropGetValidAttachmentsResponse.AttachmentIdCount, ropGetValidAttachmentsResponse.AttachmentIdArray.Length, 2337, @"[in RopGetValidAttachments ROP Success Response Buffer,AttachmentIdArray (variable)]The number of integer values contained in this field is specified by the AttachmentIdCount field. "); }