Microsoft.Protocols.TestSuites.MS_OXCROPS.MS_OXCROPSAdapter.VerifyRopCreateAttachmentSuccessResponse C# (CSharp) Method

VerifyRopCreateAttachmentSuccessResponse() private method

Verify RopCreateAttachment Success Response
private VerifyRopCreateAttachmentSuccessResponse ( RopCreateAttachmentResponse ropCreateAttachmentResponse, byte outputHandleIndex ) : void
ropCreateAttachmentResponse Microsoft.Protocols.TestSuites.Common.RopCreateAttachmentResponse The response of RopCreateAttachment request
outputHandleIndex byte The field of OutputHandleIndex in RopCreateAttachment request
return void
        private void VerifyRopCreateAttachmentSuccessResponse(RopCreateAttachmentResponse ropCreateAttachmentResponse, byte outputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2164");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2164
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropCreateAttachmentResponse.RopId.GetType(),
                2164,
                @"[In RopCreateAttachment ROP Success Response Buffer] RopId (1 byte): An unsigned integer.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2166");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2166
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopCreateAttachment,
                ropCreateAttachmentResponse.RopId,
                2166,
                @"[In RopCreateAttachment ROP Success Response Buffer,RopId (1 byte)]For this operation[ RopCreateAttachment], this field is set to 0x23.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2167");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2167
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropCreateAttachmentResponse.OutputHandleIndex.GetType(),
                2167,
                @"[In RopCreateAttachment ROP Success Response Buffer]OutputHandleIndex (1 byte): An unsigned integer.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2168");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2168
            Site.CaptureRequirementIfAreEqual<byte>(
                outputHandleIndex,
                ropCreateAttachmentResponse.OutputHandleIndex,
                2168,
                @"[In RopCreateAttachment ROP Success Response Buffer,OutputHandleIndex (1 byte)]This index MUST be set to the value specified in the OutputHandleIndex field in the request.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2170");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2170
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropCreateAttachmentResponse.ReturnValue.GetType(),
                2170,
                @"[In RopCreateAttachment ROP Success Response Buffer]ReturnValue (4 bytes): An unsigned integer.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2172");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2172
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropCreateAttachmentResponse.ReturnValue,
                2172,
                @"[In RopCreateAttachment 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_R2173");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2173
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropCreateAttachmentResponse.AttachmentID.GetType(),
                2173,
                @"[In RopCreateAttachment ROP Success Response Buffer]AttachmentID (4 bytes): An unsigned integer identifier.");
        }
MS_OXCROPSAdapter