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

VerifyRopSetMessageReadFlagFailureResponse() private method

Verify RopSetMessageReadFlag Failure Response
private VerifyRopSetMessageReadFlagFailureResponse ( RopSetMessageReadFlagResponse ropSetMessageReadFlagResponse, byte responseHandleIndex ) : void
ropSetMessageReadFlagResponse RopSetMessageReadFlagResponse The response of RopSetMessageReadFlag request
responseHandleIndex byte The field of ResponseHandleIndex in RopSetMessageReadFlag request
return void
        private void VerifyRopSetMessageReadFlagFailureResponse(RopSetMessageReadFlagResponse ropSetMessageReadFlagResponse, byte responseHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R2116");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2118
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSetMessageReadFlag,
                ropSetMessageReadFlagResponse.RopId,
                2118,
                @"[In RopSetMessageReadFlag ROP Failure Response Buffer,RopId (1 byte)] For this operation[RopSetMessageReadFlag], this field is set to 0x11.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2119
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSetMessageReadFlagResponse.ResponseHandleIndex.GetType(),
                2119,
                @"[In RopSetMessageReadFlag ROP Failure Response Buffer]ResponseHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2120
            Site.CaptureRequirementIfAreEqual<byte>(
                responseHandleIndex,
                ropSetMessageReadFlagResponse.ResponseHandleIndex,
                2120,
                @"[In RopSetMessageReadFlag ROP Failure Response Buffer,ResponseHandleIndex (1 byte)]This index MUST be set to the value specified in the ResponseHandleIndex field in the request.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R2124
            Site.CaptureRequirementIfAreNotEqual<uint>(
                SuccessReturnValue,
                ropSetMessageReadFlagResponse.ReturnValue,
                2124,
                @"[In RopSetMessageReadFlag 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