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

VerifyRopNotifyResponse() private method

Verify RopNotify Response
private VerifyRopNotifyResponse ( RopNotifyResponse ropNotifyResponse ) : void
ropNotifyResponse RopNotifyResponse The response of RopNotify request
return void
        private void VerifyRopNotifyResponse(RopNotifyResponse ropNotifyResponse)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCROPS_R4423");

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4423
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropNotifyResponse.RopId.GetType(),
                4423,
                @"[In RopNotify ROP Response Buffer] RopId (1 byte): An unsigned integer.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4425
            Site.CaptureRequirementIfAreEqual<byte>(
                (byte)RopId.RopNotify,
                ropNotifyResponse.RopId,
                4425,
                @"[In RopNotify ROP Response Buffer, RopId (1 byte):] For this operation[RopNotify] this field is set to 0x2A.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4426
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(uint),
                ropNotifyResponse.NotificationHandle.GetType(),
                4426,
                @"[In RopNotify ROP Response Buffer]NotificationHandle (4 bytes): A Server object handle.");

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

            // Verify MS-OXCROPS requirement: MS-OXCROPS_R4428
            Site.CaptureRequirementIfAreEqual<Type>(
                typeof(byte),
                ropNotifyResponse.LogonId.GetType(),
                4428,
                @"[In RopNotify ROP Response Buffer] LogonId (1 byte): An unsigned integer.");
        }
        #endregion
MS_OXCROPSAdapter