Microsoft.Protocols.TestSuites.MS_OXCPRPT.MS_OXCPRPTAdapter.VerifyPropertyValueAfterPropertyDeleted C# (CSharp) Method

VerifyPropertyValueAfterPropertyDeleted() private method

Verify whether the property value is NotFound when querying this property after deleted.
private VerifyPropertyValueAfterPropertyDeleted ( byte propertyValue, bool isRopDeletePropertiesMethod ) : void
propertyValue byte The returned value of the property.
isRopDeletePropertiesMethod bool Indicates if the ROP method is RopDeleteProperties.
return void
        private void VerifyPropertyValueAfterPropertyDeleted(byte[] propertyValue, bool isRopDeletePropertiesMethod)
        {
            byte[] notFound = new byte[] { 0x0F, 0x01, 0x04, 0x80 };
            bool isR875Satisfied = Common.CompareByteArray(propertyValue, notFound);

            if (Common.IsRequirementEnabled(875, this.Site))
            {                
                if (isRopDeletePropertiesMethod)
                {
                    // Verify MS-OXCPRPT requirement: MS-OXCPRPT_R875
                    Site.CaptureRequirementIfIsTrue(
                        isR875Satisfied,
                        875,
                        @"[In Processing RopDeleteProperties] Implementation does return the NotFound error(0x8004010F) ([MS-OXCDATA] section 2.4.2) in place of a value, if a client request the value of this property[which is deleted].(Microsoft Exchange Server 2007 and above follow this behavior.)");
                }
            }

            if (Common.IsRequirementEnabled(83603, this.Site))
            {
                if (!isRopDeletePropertiesMethod)
                {
                    // Verify MS-OXCPRPT requirement: MS-OXCPRPT_R83603
                    Site.CaptureRequirementIfIsTrue(
                       isR875Satisfied,
                       83603,
                       @"[In RopDeletePropertiesNoReplicate] Implementation does return the NotFound error(0x8004010F) ([MS-OXCDATA] section 2.4.2) in place of a value, if a client request the value of this property.(Microsoft Exchange Server 2007 and above follow this behavior.).");
                }
            }
        }
        #endregion
MS_OXCPRPTAdapter