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

VerifyRopCopyPropertiesSuccessResponse() private method

Verify RopCopyProperties Success Response
private VerifyRopCopyPropertiesSuccessResponse ( RopCopyPropertiesResponse ropCopyPropertiesResponse, byte sourceHandleIndex ) : void
ropCopyPropertiesResponse Microsoft.Protocols.TestSuites.Common.RopCopyPropertiesResponse The success response of RopCopyProperties request
sourceHandleIndex byte The field of SourceHandleIndex in RopCopyProperties request
return void
        private void VerifyRopCopyPropertiesSuccessResponse(RopCopyPropertiesResponse ropCopyPropertiesResponse, byte sourceHandleIndex)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R3024");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3024
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropCopyPropertiesResponse.RopId.GetType(),
                3024,
                @"[In RopCopyProperties ROP Success Response Buffer]RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3026
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopCopyProperties,
                ropCopyPropertiesResponse.RopId,
                3026,
                @"[In RopCopyProperties ROP Success Response Buffer,RopId (1 byte)]For this operation[RopCopyProperties], this field is set to 0x67.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3027
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropCopyPropertiesResponse.SourceHandleIndex.GetType(),
                3027,
                @"[In RopCopyProperties ROP Success Response Buffer]SourceHandleIndex (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3028
            Site.CaptureRequirementIfAreEqual<byte>(
                sourceHandleIndex,
                ropCopyPropertiesResponse.SourceHandleIndex,
                3028,
                @"[In RopCopyProperties ROP Success Response Buffer,SourceHandleIndex (1 byte)]This index MUST be set to the value specified in the SourceHandleIndex field specified in the request.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3030
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropCopyPropertiesResponse.ReturnValue.GetType(),
                3030,
                @"[In RopCopyProperties ROP Success Response Buffer]ReturnValue (4 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3032
            Site.CaptureRequirementIfAreEqual<uint>(
                SuccessReturnValue,
                ropCopyPropertiesResponse.ReturnValue,
                3032,
                @"[In RopCopyProperties ROP Success Response Buffer,ReturnValue (4 bytes) ]For this response[Success Response], this field is set to 0x00000000.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3033
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(ushort),
                ropCopyPropertiesResponse.PropertyProblemCount.GetType(),
                3033,
                @"[In RopCopyProperties ROP Success Response Buffer]PropertyProblemCount (2 bytes): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3035
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(PropertyProblem[]),
                ropCopyPropertiesResponse.PropertyProblems.GetType(),
                3035,
                @"[In RopCopyProperties ROP Success Response Buffer]PropertyProblems (variable): An array of PropertyProblem structures.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R3036
            Site.CaptureRequirementIfAreEqual<int>(
                ropCopyPropertiesResponse.PropertyProblemCount,
                ropCopyPropertiesResponse.PropertyProblems.Length,
                3036,
                @"[In RopCopyProperties ROP Success Response Buffer,PropertyProblems (variable)]The number of structures contained in this field[PropertyProblems (variable)] is specified by the PropertyProblemCount field.");
        }
MS_OXCROPSAdapter