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

VerifyRopReadPerUserInformationFailureResponse() private method

Verify RopReadPerUserInformation Failure Response
private VerifyRopReadPerUserInformationFailureResponse ( RopReadPerUserInformationResponse ropReadPerUserInformationResponse, byte inputHandleIndex ) : void
ropReadPerUserInformationResponse RopReadPerUserInformationResponse The failure response of RopReadPerUserInformation request
inputHandleIndex byte The field of InputHandleIndex in RopReadPerUserInformation request
return void
        private void VerifyRopReadPerUserInformationFailureResponse(RopReadPerUserInformationResponse ropReadPerUserInformationResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R491");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R493
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopReadPerUserInformation,
                ropReadPerUserInformationResponse.RopId,
                493,
                @"[In RopReadPerUserInformation ROP Failure Response Buffer] RopId (1 byte): For this operation[RopReadPerUserInformation], this field[RopId (1 byte)] is set to 0x63.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R495
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropReadPerUserInformationResponse.InputHandleIndex,
                495,
                @"[In RopReadPerUserInformation 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_R496");

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

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

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