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

VerifyRopSeekStreamFailureResponse() private method

Verify RopSeekStream Failure Response
private VerifyRopSeekStreamFailureResponse ( RopSeekStreamResponse ropSeekStreamResponse, byte inputHandleIndex ) : void
ropSeekStreamResponse RopSeekStreamResponse The failure response of RopSeekStream request
inputHandleIndex byte The field of InputHandleIndex in RopSeekStream request
return void
        private void VerifyRopSeekStreamFailureResponse(RopSeekStreamResponse ropSeekStreamResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3355");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3357
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSeekStream,
                ropSeekStreamResponse.RopId,
                3357,
                @"[In RopSeekStream ROP Failure Response Buffer,RopId (1 byte)]For this operation[RopSeekStream], this field is set to 0x2E.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3359
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropSeekStreamResponse.InputHandleIndex,
                3359,
                @"[In RopSeekStream 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_R3361");

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

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

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