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

VerifyRopGetPropertiesSpecificFailureResponse() private method

Verify RopGetPropertiesSpecific Failure Response
private VerifyRopGetPropertiesSpecificFailureResponse ( RopGetPropertiesSpecificResponse ropGetPropertiesSpecificResponse, byte inputHandleIndex ) : void
ropGetPropertiesSpecificResponse RopGetPropertiesSpecificResponse The failure response of RopGetPropertiesSpecific request
inputHandleIndex byte The field of InputHandleIndex in RopGetPropertiesSpecific request
return void
        private void VerifyRopGetPropertiesSpecificFailureResponse(RopGetPropertiesSpecificResponse ropGetPropertiesSpecificResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2705");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2707
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetPropertiesSpecific,
                ropGetPropertiesSpecificResponse.RopId,
                2707,
                @"[In RopGetPropertiesSpecific ROP Failure 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_R2708");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2709
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropGetPropertiesSpecificResponse.InputHandleIndex,
                2709,
                @"[In RopGetPropertiesSpecific ROP Failure 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_R2711");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2713
            Site.CaptureRequirementIfAreNotEqual<uint>(
                SuccessReturnValue,
                ropGetPropertiesSpecificResponse.ReturnValue,
                2713,
                @"[In RopGetPropertiesSpecific ROP Failure Response Buffer,ReturnValue (4 bytes)]For this response[Failure Response ], this field is set to a value other than 0x00000000.");
        }
MS_OXCROPSAdapter