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

VerifyRopGetCollapseStateSuccessResponse() private method

Verify RopGetCollapseState Success Response
private VerifyRopGetCollapseStateSuccessResponse ( RopGetCollapseStateResponse ropGetCollapseStateResponse, byte inputHandleIndex ) : void
ropGetCollapseStateResponse RopGetCollapseStateResponse The response of RopGetCollapseState request
inputHandleIndex byte The field of InputHandleIndex in RopGetCollapseState request
return void
        private void VerifyRopGetCollapseStateSuccessResponse(RopGetCollapseStateResponse ropGetCollapseStateResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1612");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1614
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetCollapseState,
                ropGetCollapseStateResponse.RopId,
                1614,
                @"[In RopGetCollapseState ROP Success Response Buffer] RopId (1 byte): For this operation[RopGetCollapseState], this field[RopId (1 byte)] is set to 0x6B.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1615
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropGetCollapseStateResponse.InputHandleIndex.GetType(),
                1615,
                @"[In RopGetCollapseState ROP Success Response Buffer] InputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1616
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropGetCollapseStateResponse.InputHandleIndex,
                1616,
                @"[In RopGetCollapseState 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_R1617");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1619
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropGetCollapseStateResponse.ReturnValue,
                1619,
                @"[In RopGetCollapseState 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_R1620");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1620
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(ushort),
                ropGetCollapseStateResponse.CollapseStateSize.GetType(),
                1620,
                @"[In RopGetCollapseState ROP Success Response Buffer] CollapseStateSize (2 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1622
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte[]),
                ropGetCollapseStateResponse.CollapseState.GetType(),
                1622,
                @"[In RopGetCollapseState ROP Success Response Buffer] CollapseState (variable): An array of bytes.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1623
            Site.CaptureRequirementIfAreEqual<ushort>(
                ropGetCollapseStateResponse.CollapseStateSize,
                (ushort)ropGetCollapseStateResponse.CollapseState.Length,
                1623,
                @"[In RopGetCollapseState ROP Success Response Buffer] CollapseState (variable): The size of this field, in bytes, is specified by the CollapseStateSize field.");
        }
MS_OXCROPSAdapter