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

VerifyRopSetSpoolerResponse() private method

Verify RopSetSpooler Response
private VerifyRopSetSpoolerResponse ( RopSetSpoolerResponse ropSetSpoolerResponse, byte inputHandleIndex ) : void
ropSetSpoolerResponse RopSetSpoolerResponse The response of RopSetSpooler request
inputHandleIndex byte The field of InputHandleIndex in RopSetSpooler request
return void
        private void VerifyRopSetSpoolerResponse(RopSetSpoolerResponse ropSetSpoolerResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2436");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2438
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSetSpooler,
                ropSetSpoolerResponse.RopId,
                2438,
                @"[In RopSetSpooler ROP Response Buffer,RopId (1 byte)]For this operation[RopSetSpooler], this field is set to 0x47.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2440
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropSetSpoolerResponse.InputHandleIndex,
                2440,
                @"[In RopSetSpooler 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_R2442");

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