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

VerifyRopGetPropertiesSpecificSuccessResponse() private method

Verify RopGetPropertiesSpecific Success Response
private VerifyRopGetPropertiesSpecificSuccessResponse ( RopGetPropertiesSpecificResponse ropGetPropertiesSpecificResponse, byte inputHandleIndex, PropertyTag propertyTags ) : void
ropGetPropertiesSpecificResponse RopGetPropertiesSpecificResponse The success response of RopGetPropertiesSpecific request
inputHandleIndex byte The field of InputHandleIndex in RopGetPropertiesSpecific request
propertyTags PropertyTag The field of PropertyTags in RopGetPropertiesSpecific request
return void
        private void VerifyRopGetPropertiesSpecificSuccessResponse(RopGetPropertiesSpecificResponse ropGetPropertiesSpecificResponse, byte inputHandleIndex, PropertyTag[] propertyTags)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2693");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2695
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetPropertiesSpecific,
                ropGetPropertiesSpecificResponse.RopId,
                2695,
                @"[In RopGetPropertiesSpecific ROP Success Response Buffer,RopId (1 byte)]For this operation[RopGetPropertiesSpecific], this field is set to 0x07.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2697
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropGetPropertiesSpecificResponse.InputHandleIndex,
                2697,
                @"[In RopGetPropertiesSpecific 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_R2699");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2701
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropGetPropertiesSpecificResponse.ReturnValue,
                2701,
                @"[In RopGetPropertiesSpecific 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_R2702");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2702
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(PropertyRow),
                ropGetPropertiesSpecificResponse.RowData.GetType(),
                2702,
                @"[In RopGetPropertiesSpecific ROP Success Response Buffer]RowData (variable): A PropertyRow structure.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2704
            Site.CaptureRequirementIfAreEqual<int>(
                propertyTags.Length,
                ropGetPropertiesSpecificResponse.RowData.PropertyValues.Count,
                2704,
                @"[In RopGetPropertiesSpecific ROP Success Response Buffer,RowData (variable)]the columns used for these rows[RowData (variable)] were those specified in the PropertyTags field in the ROP request.");
        }
MS_OXCROPSAdapter