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

VerifyRopReloadCachedInformationFailureResponse() private method

Verify RopReloadCachedInformation Failure Response
private VerifyRopReloadCachedInformationFailureResponse ( RopReloadCachedInformationResponse ropReloadCachedInformationResponse, byte inputHandleIndex ) : void
ropReloadCachedInformationResponse RopReloadCachedInformationResponse The response of RopReloadCachedInformation request
inputHandleIndex byte The field of InputHandleIndex in RopReloadCachedInformation request
return void
        private void VerifyRopReloadCachedInformationFailureResponse(RopReloadCachedInformationResponse ropReloadCachedInformationResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1986");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1988
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopReloadCachedInformation,
                ropReloadCachedInformationResponse.RopId,
                1988,
                @"[In RopReloadCachedInformation ROP Failure Response Buffer,RopId (1 byte)]For this operation[RopReloadCachedInformation], this field is set to 0x10.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1990
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropReloadCachedInformationResponse.InputHandleIndex,
                1990,
                @"[In RopReloadCachedInformation 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_R1992");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1994
            Site.CaptureRequirementIfAreNotEqual<uint>(
                SuccessReturnValue,
                ropReloadCachedInformationResponse.ReturnValue,
                1994,
                @"[In RopReloadCachedInformation 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