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

VerifyRopGetHierarchyTableFailureResponse() private method

Verify RopGetHierarchyTable Failure Response
private VerifyRopGetHierarchyTableFailureResponse ( RopGetHierarchyTableResponse ropGetHierarchyTableResponse, byte outputHandleIndex ) : void
ropGetHierarchyTableResponse RopGetHierarchyTableResponse The failure response of RopGetHierarchyTable request
outputHandleIndex byte The field of OutputHandleIndex in RopGetHierarchyTable request
return void
        private void VerifyRopGetHierarchyTableFailureResponse(RopGetHierarchyTableResponse ropGetHierarchyTableResponse, byte outputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1003");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1005
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetHierarchyTable,
                ropGetHierarchyTableResponse.RopId,
                1005,
                @"[In RopGetHierarchyTable ROP Failure Response Buffer] RopId (1 byte): For this operation[RopGetHierarchyTable], this field[RopId (1 byte)] is set to 0x04.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1006
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropGetHierarchyTableResponse.OutputHandleIndex.GetType(),
                1006,
                @"[In RopGetHierarchyTable ROP Failure Response Buffer] OutputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1007
            Site.CaptureRequirementIfAreEqual<byte>(
                outputHandleIndex,
                ropGetHierarchyTableResponse.OutputHandleIndex,
                1007,
                @"[In RopGetHierarchyTable ROP Failure Response Buffer] OutputHandleIndex (1 byte): This index MUST be set to the value specified in the OutputHandleIndex field in the request.");

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

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

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

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