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

VerifyRopReadRecipientsFailureResponse() private method

Verify RopReadRecipients Failure Response
private VerifyRopReadRecipientsFailureResponse ( RopReadRecipientsResponse ropReadRecipientsResponse, byte inputHandleIndex ) : void
ropReadRecipientsResponse RopReadRecipientsResponse The response of RopReadRecipients request
inputHandleIndex byte The field of InputHandleIndex in RopReadRecipients request
return void
        private void VerifyRopReadRecipientsFailureResponse(RopReadRecipientsResponse ropReadRecipientsResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1934");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1936
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopReadRecipients,
                ropReadRecipientsResponse.RopId,
                1936,
                @"[In RopReadRecipients ROP Failure Response Buffer,RopId (1 byte)]For this operation[RopReadRecipients], this field is set to 0x0F.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1938
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropReadRecipientsResponse.InputHandleIndex,
                1938,
                @"[In RopReadRecipients 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_R1940");

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

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

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