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

VerifyRopSynchronizationImportMessageChangeSuccessResponse() private method

Verify RopSynchronizationImportMessageChange Success Response
private VerifyRopSynchronizationImportMessageChangeSuccessResponse ( RopSynchronizationImportMessageChangeResponse ropSynchronizationImportMessageChangeResponse, byte outputHandleIndex ) : void
ropSynchronizationImportMessageChangeResponse RopSynchronizationImportMessageChangeResponse The success response of RopSynchronizationImportMessageChange request
outputHandleIndex byte The field of OutputHandleIndex in RopSynchronizationImportMessageChange request
return void
        private void VerifyRopSynchronizationImportMessageChangeSuccessResponse(
            RopSynchronizationImportMessageChangeResponse ropSynchronizationImportMessageChangeResponse,
            byte outputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3969");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3969
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSynchronizationImportMessageChangeResponse.RopId.GetType(),
                3969,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer] RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3971
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSynchronizationImportMessageChange,
                ropSynchronizationImportMessageChangeResponse.RopId,
                3971,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer, RopId (1 byte):] For this operation[RopSynchronizationImportMessageChange] this field is set to 0x72.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3972
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSynchronizationImportMessageChangeResponse.OutputHandleIndex.GetType(),
                3972,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer] OutputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3973
            Site.CaptureRequirementIfAreEqual<byte>(
                outputHandleIndex,
                ropSynchronizationImportMessageChangeResponse.OutputHandleIndex,
                3973,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer, OutputHandleIndex (1 byte):] This index MUST be set to the value specified in the OutputHandleIndex field in the request.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3975
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropSynchronizationImportMessageChangeResponse.ReturnValue.GetType(),
                3975,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer] ReturnValue (4 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3977
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropSynchronizationImportMessageChangeResponse.ReturnValue,
                3977,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer, ReturnValue (4 bytes):] For this response[Success Response], this field is set to 0x00000000.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3978
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(ulong),
                ropSynchronizationImportMessageChangeResponse.MessageId.GetType(),
                3978,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer] MessageId (8 bytes): An identifier.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4694
            Site.CaptureRequirementIfAreEqual<ulong?>(
                MessageIdForRops,
                ropSynchronizationImportMessageChangeResponse.MessageId,
                4694,
                @"[In RopSynchronizationImportMessageChange ROP Success Response Buffer] MessageId (8 bytes): This field MUST be set to 0x0000000000000000.");
        }
MS_OXCROPSAdapter