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

VerifyRopCreateBookmarkFailureResponse() private method

Verify RopCreateBookmark Failure Response
private VerifyRopCreateBookmarkFailureResponse ( RopCreateBookmarkResponse ropCreateBookmarkResponse, byte inputHandleIndex ) : void
ropCreateBookmarkResponse RopCreateBookmarkResponse The response of RopCreateBookmark request
inputHandleIndex byte The field of InputHandleIndex in RopCreateBookmark request
return void
        private void VerifyRopCreateBookmarkFailureResponse(RopCreateBookmarkResponse ropCreateBookmarkResponse, byte inputHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R1405");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1407
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopCreateBookmark,
                ropCreateBookmarkResponse.RopId,
                1407,
                @"[In RopCreateBookmark ROP Failure Response Buffer] RopId (1 byte): For this operation[RopCreateBookmark], this field[RopId (1 byte)] is set to 0x1B.");

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

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1409
            Site.CaptureRequirementIfAreEqual<byte>(
                inputHandleIndex,
                ropCreateBookmarkResponse.InputHandleIndex,
                1409,
                @"[In RopCreateBookmark 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_R1410");

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

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R1412
            Site.CaptureRequirementIfAreNotEqual<uint>(
                SuccessReturnValue,
                ropCreateBookmarkResponse.ReturnValue,
                1412,
                @"[In RopCreateBookmark 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