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

VerifyRopSynchronizationOpenCollectorResponse() private method

Verify RopSynchronizationOpenCollector Response
private VerifyRopSynchronizationOpenCollectorResponse ( RopSynchronizationOpenCollectorResponse ropSynchronizationOpenCollectorResponse, byte outputHandleIndex ) : void
ropSynchronizationOpenCollectorResponse RopSynchronizationOpenCollectorResponse The response of RopSynchronizationOpenCollector request
outputHandleIndex byte The field of OutputHandleIndex in RopSynchronizationOpenCollector request
return void
        private void VerifyRopSynchronizationOpenCollectorResponse(RopSynchronizationOpenCollectorResponse ropSynchronizationOpenCollectorResponse, byte outputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R4160");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4162
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopSynchronizationOpenCollector,
                ropSynchronizationOpenCollectorResponse.RopId,
                4162,
                @"[In RopSynchronizationOpenCollector ROP Response Buffer, RopId (1 byte):] For this operation[RopSynchronizationOpenCollector] this field is set to 0x7E.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4163
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropSynchronizationOpenCollectorResponse.OutputHandleIndex.GetType(),
                4163,
                @"[In RopSynchronizationOpenCollector ROP Response Buffer]OutputHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4164
            Site.CaptureRequirementIfAreEqual<byte>(
                outputHandleIndex,
                ropSynchronizationOpenCollectorResponse.OutputHandleIndex,
                4164,
                @"[In RopSynchronizationOpenCollector ROP 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_R4166");

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