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

VerifyRopSpoolerLockMessageResponse() private method

Verify RopSpoolerLockMessage Response
private VerifyRopSpoolerLockMessageResponse ( RopSpoolerLockMessageResponse ropSpoolerLockMessageResponse, byte inputHandleIndex ) : void
ropSpoolerLockMessageResponse RopSpoolerLockMessageResponse The response of RopSpoolerLockMessage request
inputHandleIndex byte The field of InputHandleIndex in RopSpoolerLockMessage request
return void
        private void VerifyRopSpoolerLockMessageResponse(RopSpoolerLockMessageResponse ropSpoolerLockMessageResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2458");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2458
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSpoolerLockMessageResponse.RopId.GetType(),
                2458,
                @"[In RopSpoolerLockMessage ROP Response Buffer]RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2460
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSpoolerLockMessage,
                ropSpoolerLockMessageResponse.RopId,
                2460,
                @"[In RopSpoolerLockMessage ROP Response Buffer,RopId (1 byte)]For this operation[RopSpoolerLockMessage], this field is set to 0x48.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2461
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSpoolerLockMessageResponse.InputHandleIndex.GetType(),
                2461,
                @"[In RopSpoolerLockMessage ROP Response Buffer]InputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2462
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropSpoolerLockMessageResponse.InputHandleIndex,
                2462,
                @"[In RopSpoolerLockMessage ROP 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_R2464");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2464
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropSpoolerLockMessageResponse.ReturnValue.GetType(),
                2464,
                @"[In RopSpoolerLockMessage ROP Response Buffer]ReturnValue (4 bytes): An unsigned integer.");
        }
        #endregion
MS_OXCROPSAdapter