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

VerifyRopLockRegionStreamResponse() private method

Verify RopLockRegionStream Response
private VerifyRopLockRegionStreamResponse ( RopLockRegionStreamResponse ropLockRegionStreamResponse, byte inputHandleIndex ) : void
ropLockRegionStreamResponse RopLockRegionStreamResponse The response of RopLockRegionStream request
inputHandleIndex byte The field of InputHandleIndex in RopLockRegionStream request
return void
        private void VerifyRopLockRegionStreamResponse(RopLockRegionStreamResponse ropLockRegionStreamResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3433");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3433
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropLockRegionStreamResponse.RopId.GetType(),
                3433,
                @"[In RopLockRegionStream ROP Response Buffer]RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3435
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopLockRegionStream,
                ropLockRegionStreamResponse.RopId,
                3435,
                @"[In RopLockRegionStream ROP Response Buffer,RopId (1 byte)]For this operation[RopLockRegionStream], this field is set to 0x5B.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3436
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropLockRegionStreamResponse.InputHandleIndex.GetType(),
                3436,
                @"[In RopLockRegionStream ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3437
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropLockRegionStreamResponse.InputHandleIndex,
                3437,
                @"[In RopLockRegionStream 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_R3439");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3439
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropLockRegionStreamResponse.ReturnValue.GetType(),
                3439,
                @"[In RopLockRegionStream ROP Response Buffer]ReturnValue (4 bytes): An unsigned integer.");
        }
        #endregion
MS_OXCROPSAdapter