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

VerifyRopGetLocalReplicaIdsFailureResponse() private method

Verify RopGetLocalReplicaIds Failure Response
private VerifyRopGetLocalReplicaIdsFailureResponse ( RopGetLocalReplicaIdsResponse ropGetLocalReplicaIdsResponse, byte inputHandleIndex ) : void
ropGetLocalReplicaIdsResponse RopGetLocalReplicaIdsResponse The failure response of RopGetLocalReplicaIds request
inputHandleIndex byte The field of InputHandleIndex in RopGetLocalReplicaIds request
return void
        private void VerifyRopGetLocalReplicaIdsFailureResponse(RopGetLocalReplicaIdsResponse ropGetLocalReplicaIdsResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R4311");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4313
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopGetLocalReplicaIds,
                ropGetLocalReplicaIdsResponse.RopId,
                4313,
                @"[In RopGetLocalReplicaIds ROP Failure Response Buffer, RopId (1 byte):] For this operation[RopGetLocalReplicaIds] this field is set to 0x7F.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4315
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropGetLocalReplicaIdsResponse.InputHandleIndex,
                4315,
                @"[In RopGetLocalReplicaIds ROP Failure Response Buffer, InputHandleIndex (1 byte):] This index MUST be set to the value specified in theInputHandleIndex field in the request.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4319
            Site.CaptureRequirementIfAreNotEqual<uint>(
                SuccessReturnValue,
                ropGetLocalReplicaIdsResponse.ReturnValue,
                4319,
                @"[In RopGetLocalReplicaIds 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