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

VerifyRopLongTermIdFromIdSuccessResponse() private method

Verify RopLongTermIdFromId Success Response
private VerifyRopLongTermIdFromIdSuccessResponse ( RopLongTermIdFromIdResponse ropLongTermIdFromIdResponse, byte inputHandleIndex ) : void
ropLongTermIdFromIdResponse RopLongTermIdFromIdResponse The success response of RopLongTermIdFromId request
inputHandleIndex byte The field of InputHandleIndex in RopLongTermIdFromId request
return void
        private void VerifyRopLongTermIdFromIdSuccessResponse(RopLongTermIdFromIdResponse ropLongTermIdFromIdResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R340");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R342
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopLongTermIdFromId,
                ropLongTermIdFromIdResponse.RopId,
                342,
                @"[In RopLongTermIdFromId ROP Success Response Buffer] RopId (1 byte): For this operation[RopLongTermIdFromId], this field[RopId (1 byte)] is set to 0x43.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R344
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropLongTermIdFromIdResponse.InputHandleIndex,
                344,
                @"[In RopLongTermIdFromId ROP Success Response Buffer] InputHandleIndex (1 byte): This index MUST be set to the value of the InputHandleIndex field in the request. ");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R347
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropLongTermIdFromIdResponse.ReturnValue,
                347,
                @"[In RopLongTermIdFromId ROP Success Response Buffer] ReturnValue (4 bytes): For this response[Success Response], this field[ReturnValue (4 bytes)] is set to 0x00000000.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R348
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(LongTermId),
                ropLongTermIdFromIdResponse.LongTermId.GetType(),
                348,
                @"[In RopLongTermIdFromId ROP Success Response Buffer] LongTermId (24 bytes): A LongTermID structure.");
        }
MS_OXCROPSAdapter