示例#1
0
        /// <summary>
        /// Indicates whether this instance and a specific object are equals
        /// </summary>
        /// <param name="obj">The object that compare with this instance.</param>
        /// <returns>A Boolean value indicates whether this instance and a specific object are equals.</returns>
        public override bool Equals(object obj)
        {
            if (obj.GetType() != typeof(AddressBookEntryID))
            {
                return(false);
            }

            AddressBookEntryID addrObj = (AddressBookEntryID)obj;

            if (addrObj.Type != this.Type)
            {
                return(false);
            }

            if (addrObj.X500DN != this.X500DN)
            {
                return(false);
            }

            return(true);
        }
        /// <summary>
        /// Verify the DataType of Messages.
        /// </summary>
        /// <param name="propertyObj"> The structure of message. </param>
        private void VerifyMessageSyntaxDataType(PropertyObj propertyObj)
        {
            switch (propertyObj.PropertyName)
            {
                case PropertyNames.PidTagHasAttachments:
                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R497");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R497
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        497,
                        @"[In PidTagHasAttachments Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");

                    // Verify the PtypBoolean type
                    bool isVerifyR2698 = (Convert.ToByte((bool)propertyObj.Value) >= byte.MinValue && Convert.ToByte((bool)propertyObj.Value) <= byte.MaxValue) && (propertyObj.ValueTypeCode == 0x000B);

                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2698:{0}", propertyObj.Value);

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2698
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2698,
                        CdataShortName,
                        2698,
                        @"[In Property Data Types] PtypBoolean (PT_BOOLEAN. bool) is that 1 byte, restricted to 1 or 0 [MS-DTYP]: BOOLEAN with Property Type Value 0x000B, %x0B.00.");
                    break;

                case PropertyNames.PidTagMessageClass:
                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R499");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R499
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        499,
                        @"[In PidTagMessageClass Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");

                    // Verify the PtypString type
                    bool isVerifyR2700 = propertyObj.ValueTypeCode == 0x001F;

                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2700:{0}", propertyObj.Value);

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2700
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2700,
                        CdataShortName,
                        2700,
                        @"[In Property Data Types] PtypString (PT_UNICODE, string) is that Variable size; a string of Unicode characters in UTF-16LE format encoding with terminating null character (0x0000). with Property Type Value  0x001F,%x1F.00.");

                    string strMsg = (string)propertyObj.Value;

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R22. The value of PidTagMessageClass is {0}.", strMsg);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R22
                        this.Site.CaptureRequirementIfIsTrue(
                            strMsg.IndexOf(".") > 0,
                            22,
                            @"[In PidTagMessageClass Property] The value of this property [PidTagMessageClass] is interpreted in groups of characters separated by periods (""."").");

                        // Add the debug information
                        Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R19:{0}", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R19
                        // Characters in PidTagMessageClass are from the ASCII characters 0x20 to 0x7F.
                        bool isVerifiedR19 = AdapterHelper.IsStringValueValid(strMsg, (char)0x20, (char)0x7F);

                        Site.CaptureRequirementIfIsTrue(
                            isVerifiedR19,
                            19,
                            @"[In PidTagMessageClass Property] All characters in this property [PidTagMessageClass] MUST be from the ASCII characters 0x20 through 0x7F.");

                        // Add the debug information
                        Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R501:{0}", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R501
                        // ASCII character of a period is 0x2E 
                        bool isVerifyR501 = strMsg[strMsg.Length - 1] != 0x2E;

                        Site.CaptureRequirementIfIsTrue(
                            isVerifyR501,
                            501,
                            @"[In PidTagMessageClass Property] It [PtypString] MUST NOT end with a period (ASCII character 0x2E).");

                        // Add the debug information
                        Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R502:{0}", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R502
                        bool isVerifyR502 = AdapterHelper.IsStringLengthValid(strMsg, 0, 256);

                        Site.CaptureRequirementIfIsTrue(
                            isVerifyR502,
                            502,
                            @"[In PidTagMessageClass Property] Its length [PtypString] MUST be greater than zero and less than 256 characters.");

                        if (Common.IsRequirementEnabled(496, this.Site))
                        {
                            // Add the debug information
                            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R496:{0}", propertyObj.Value);

                            // Verify MS-OXCMSG requirement: MS-OXCMSG_R496
                            bool isR496Satisfied = AdapterHelper.IsStringLengthValid(strMsg, 0, 128);

                            Site.CaptureRequirementIfIsTrue(
                                isR496Satisfied,
                                496,
                                @"[In Appendix A: Product Behavior] Furthermore, its [PtypString] length is fewer than 128 characters because some operations require extending the value of PidTagMessageClass property. (Exchange 2007 and above follow this behavior.)");
                        }
                    }

                    break;

                case PropertyNames.PidTagMessageFlags:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R507
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        507,
                        @"[In PidTagMessageFlags Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifiedR1133 = false;
                    int valueOfPidTagMessageFlags = (int)propertyObj.Value;
                    if (valueOfPidTagMessageFlags == 0)
                    {
                        isVerifiedR1133 = true;
                    }
                    else
                    {
                        int value = 0x00000001 | 0x00000008 | 0x00000080 | 0x00000002 | 0x00000004 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000100 | 0x00000200 | 0x00000400 | 0x00002000 | 0x00008000;
                        if ((valueOfPidTagMessageFlags | value) == value)
                        {
                            isVerifiedR1133 = true;
                        }
                    }

                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1133. The value of PidTagMessageFlags is {0}.", propertyObj.Value);

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1133
                    this.Site.CaptureRequirementIfIsTrue(
                        isVerifiedR1133,
                        1133,
                        @"[In PidTagMessageFlags Property] Set to zero or to a bitwise OR of one or more of the values [0x00000001, 0x00000008, 0x00000080, 0x00000002, 0x00000004, 0x00000010, 0x00000020, 0x00000040, 0x00000100, 0x00000200, 0x00000400, 0x00002000 and 0x00008000] from the following tables [two tables in section 2.2.1.6].");

                    // Verify the PtypInteger32 type
                    bool isVerifyR2691 = ((int)propertyObj.Value >= int.MinValue && (int)propertyObj.Value <= int.MaxValue) && (propertyObj.ValueTypeCode == 0x0003);

                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2691:{0}", propertyObj.Value);

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2691
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2691,
                         CdataShortName,
                         2691,
                        @"[In Property Data Types] PtypInteger32 (PT_LONG, PT_I4, int, ui4) is that 4 bytes; a 32-bit integer [MS-DTYP]: INT32 with Property Type Value 0x0003,%x03.00.");
                    break;

                case PropertyNames.PidTagMessageCodepage:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R503
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        503,
                        @"[In PidTagMessageCodepage Property] Type: PtypInteger32, unsigned.");
                    break;

                case PropertyNames.PidTagMessageLocaleId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R505
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        505,
                        @"[In PidTagMessageLocaleId Property] Type: PtypInteger32, unsigned.");
                    break;

                case PropertyNames.PidTagMessageSize:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R539
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        539,
                        @"[In PidTagMessageSize Property] Type: PtypInteger32, unsigned.");
                    break;

                case PropertyNames.PidTagMessageStatus:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R118
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        118,
                        @"[In PidTagMessageStatus Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR120 = false;

                    int valueOfPidTagMessageStatus = (int)propertyObj.Value;

                    int possibleValues = 0x00000000 | 0x00001000 | 0x00000800 | 0x00002000;
                    if ((valueOfPidTagMessageStatus | possibleValues) == possibleValues)
                    {
                        isVerifyR120 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R120
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR120,
                        120,
                        @"[In PidTagMessageStatus Property] Contains a bitwise OR of zero or more of the following values [0x00001000, 0x00000800 and 0x00002000].");
                    break;

                case PropertyNames.PidTagSubjectPrefix:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R57
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        57,
                        @"[In PidTagSubjectPrefix Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagNormalizedSubject:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R63
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        63,
                        @"[In PidTagNormalizedSubject Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagImportance:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R69
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        69,
                        @"[In PidTagImportance Property]Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR71 = false;

                    int propertyObject = (int)propertyObj.Value;
                    if (propertyObject == 0x00000000 || propertyObject == 0x00000001 || propertyObject == 0x00000002)
                    {
                        isVerifyR71 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R71
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR71,
                        71,
                        @"[In PidTagImportance Property] This property [PidTagImportance] MUST be set to one of the following values [0x00000000, 0x00000001 and 0x00000002].");
                    break;

                case PropertyNames.PidTagPriority:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R75
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        75,
                        @"[In PidTagPriority Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR77 = false;

                    int valueOfPidTagPriority = (int)propertyObj.Value;
                    if (valueOfPidTagPriority == 0x00000001 || valueOfPidTagPriority == 0x00000000 || valueOfPidTagPriority == unchecked((int)0xffffffff))
                    {
                        isVerifyR77 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R77
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR77,
                        77,
                        @"[In PidTagPriority Property] This property [PidTagPriority] is set to one of the following values [0x00000001, 0x00000000, 0xFFFFFFFF].");
                    break;

                case PropertyNames.PidTagSensitivity:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R81
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        81,
                        @"[In PidTagSensitivity Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR83 = false;

                    int valueOfPidTagSensitivity = (int)propertyObj.Value;
                    if (valueOfPidTagSensitivity == 0x00000000 || valueOfPidTagSensitivity == 0x00000001 || valueOfPidTagSensitivity == 0x00000002 || valueOfPidTagSensitivity == 0x00000003)
                    {
                        isVerifyR83 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R83
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR83,
                        83,
                        @"[In PidTagSensitivity Property] The value of this property [PidTagSensitivity] is one of the following [0x00000000, 0x00000001, 0x00000002 and 0x00000003].");
                    break;

                case PropertyNames.PidTagBody:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R123
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2052,
                        @"[In PidTagBody Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagNativeBody:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R125
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        2055,
                        @"[In PidTagNativeBody Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    if (Common.IsRequirementEnabled(1714, this.Site))
                    {
                        // Add the debug information
                        Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R127");

                        bool isVerifyR127 = false;
                        int valueOfPidTagNativeBody = (int)propertyObj.Value;
                        if (valueOfPidTagNativeBody == 0x00 || valueOfPidTagNativeBody == 0x01 || valueOfPidTagNativeBody == 0x02 || valueOfPidTagNativeBody == 0x03 || valueOfPidTagNativeBody == 0x04)
                        {
                            isVerifyR127 = true;
                        }

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R127
                        Site.CaptureRequirementIfIsTrue(
                            isVerifyR127,
                            2057,
                            @"[In PidTagNativeBody Property] The value of this property [PidTagNativeBody] is limited to one of the property values [0x00, 0x01, 0x02, 0x03, 0x04] shown in the following table [table in section 2.2.1.49.2].");
                    }

                    break;
                case PropertyNames.PidTagInternetCodepage:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2069
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        2069,
                        @"[In PidTagInternetCodepage Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2070");

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R2070
                        // MS-OXCMSG_R140 can be indirectly verified when the value of property PidTagInternetCodepage is not null.
                        this.Site.CaptureRequirement(
                            2070,
                            @"[In PidTagInternetCodepage Property] The PidTagInternetCodepage property ([MS-OXPROPS] section 2.735) indicates the code page used for the PidTagBody property (section 2.2.1.56.1) or the PidTagBodyHtml property (section 2.2.1.56.3).");
                    }

                    break;

                case PropertyNames.PidTagArchiveTag:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R157
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        2109,
                        @"[In PidTagArchiveTag Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagRetentionPeriod:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R163
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        2116,
                        @"[In PidTagRetentionPeriod Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagStartDateEtc:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R170
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        2125,
                        @"[In PidTagStartDateEtc Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R171");

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R171
                        // The length of PidTagStartDateEtc should be 12 bytes when the value of PidTagStartDateEtc exists, because Default retention period is 4 bytes and Start date is 8 bytes.
                        this.Site.CaptureRequirementIfAreEqual<int>(
                            12,
                            ((byte[])propertyObj.Value).Length - 2,
                            2126,
                            @"[In PidTagStartDateEtc Property] The PidTagStartDateEtc property ([MS-OXPROPS] section 2.1014) has the following structure [Default retention period, Start date].");

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

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R172
                        // The length of PidTagStartDateEtc should be 12 bytes when the value of PidTagStartDateEtc exists, because Default retention period is 4 bytes and Start date is 8 bytes.
                        this.Site.CaptureRequirementIfAreEqual<int>(
                            12,
                            ((byte[])propertyObj.Value).Length - 2,
                            2127,
                            @"[In PidTagStartDateEtc Property] The length of Default retention period is 4 bytes.");
                    }

                    break;

                case PropertyNames.PidTagRetentionDate:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R179
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        2134,
                        @"[In PidTagRetentionDate Property] Type: PtypTime ([MS-OXCDATA] section 2.11.1).");

                    // Verify the PtypTime type
                    bool isVerifyR2702 = ((System.DateTime)propertyObj.Value >= DateTime.MinValue && (System.DateTime)propertyObj.Value <= DateTime.MaxValue) && (propertyObj.ValueTypeCode == 0x0040);

                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2702:{0}", propertyObj.Value);

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2702
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2702,
                        CdataShortName,
                        2702,
                        @"[In Property Data Types] PtypTime (PT_SYSTIME, time, datetime, datetime.tz, datetime.rfc1123, Date, time, time.tz) is that 8 bytes; a 64-bit integer representing the number of 100-nanosecond intervals since January 1, 1601 [MS-DTYP]: FILETIME with Property Type Value 0x0040,%x40.00.");

                    break;

                case PropertyNames.PidTagRetentionFlags:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R194
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        2147,
                        @"[In PidTagRetentionFlags Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR2153 = false;

                    int valueOfPidTagRetentionFlags = (int)propertyObj.Value;
                    int possibleValueOfPidTagRetentionFlags = 0 | 0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x000000010 | 0x000000020 | 0x000000040 | 0x00000080 | 0x00000100;
                    if ((valueOfPidTagRetentionFlags & possibleValueOfPidTagRetentionFlags) == valueOfPidTagRetentionFlags)
                    {
                        isVerifyR2153 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R197
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2153,
                        2153,
                        @"[In PidTagRetentionFlags Property] The value of the PidTagRetentionFlags property [0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x000000010, 0x000000020, 0x000000040, 0x00000080, 0x00000100] is a bitwise OR of zero or more of the values from the following table [table in section 2.2.1.51.6].");
                    break;

                case PropertyNames.PidTagArchivePeriod:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R205
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        2163,
                        @"[In PidTagArchivePeriod Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagLastModificationTime:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R222
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        222,
                        @"[In PidTagLastModificationTime Property] Type: PtypTime, in UTC ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagCreationTime:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R224
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        224,
                        @"[In PidTagCreationTime Property] Type: PtypTime, in UTC ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachSize:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R229
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        229,
                        @"[In PidTagAttachSize Property] Type: PtypInteger32, unsigned ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachNumber:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R232
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        232,
                        @"[In PidTagAttachNumber Property] Type: PtypInteger32, unsigned ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachDataBinary:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R235
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        235,
                        @"[In PidTagAttachDataBinary Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachMethod:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R239
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        239,
                        @"[In PidTagAttachMethod Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR241 = false;
                    int valueOfPidTagAttachMethod = (int)propertyObj.Value;
                    if (valueOfPidTagAttachMethod == 0x00000000 || valueOfPidTagAttachMethod == 0x00000001 || valueOfPidTagAttachMethod == 0x00000002 || valueOfPidTagAttachMethod == 0x00000004 || valueOfPidTagAttachMethod == 0x00000005 || valueOfPidTagAttachMethod == 0x00000006)
                    {
                        isVerifyR241 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R241
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR241,
                        241,
                        @"[In PidTagAttachMethod Property] This property [PidTagAttachMethod] is set to one of the following values [0x00000000, 0x00000001, 0x00000002, 0x00000004, 0x00000005, 0x00000006].");
                    break;

                case PropertyNames.PidTagAttachLongFilename:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R599
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        599,
                        @"[In PidTagAttachLongFilename Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachFilename:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R601
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        601,
                        @"[In PidTagAttachFilename Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachExtension:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R603
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        603,
                        @"[In PidTagAttachExtension Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachLongPathname:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R605
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        605,
                        @"[In PidTagAttachLongPathname Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachTag:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R609
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        609,
                        @"[In PidTagAttachTag Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        byte[] pidTagAttachTagTextFir = new byte[] { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x03, 0x0A, 0x01 };
                        byte[] pidTagAttachTagTextSec = new byte[] { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x03, 0x0A, 0x03, 0x02, 0x01 };
                        byte[] pidTagAttachTagTextThird = new byte[] { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x03, 0x0A, 0x04 };

                        byte[] valueOfPidTagAttachTag = new byte[((byte[])propertyObj.Value).Length - 2];
                        Buffer.BlockCopy((byte[])propertyObj.Value, 2, valueOfPidTagAttachTag, 0, ((byte[])propertyObj.Value).Length - 2);

                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R612. The value of PidTagAttachTag is {0}.", propertyObj.Value.ToString());

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R612
                        bool isVerifiedR612 = propertyObj.Value == null
                            || Common.CompareByteArray(pidTagAttachTagTextFir, valueOfPidTagAttachTag)
                            || Common.CompareByteArray(pidTagAttachTagTextSec, valueOfPidTagAttachTag)
                            || Common.CompareByteArray(pidTagAttachTagTextThird, valueOfPidTagAttachTag);

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR612,
                            612,
                            @"[In PidTagAttachTag Property] This property can be left unset; if set, it [PidTagAttachTag] MUST be one of the following [TNEF, afStorage, MIME].");
                    }

                    break;

                case PropertyNames.PidTagRenderingPosition:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R613
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        613,
                        @"[In PidTagRenderingPosition Property] Type: PtypInteger32, unsigned ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachRendering:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R616
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        616,
                        @"[In PidTagAttachRendering Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");

                    // Verify the PtypBinary type
                    bool isVerifyR2707 = propertyObj.ValueTypeCode == 0x0102;

                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2707:{0}", propertyObj.Value);

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2707
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR2707,
                        CdataShortName,
                        2707,
                        @"[In Property Data Types] PtypBinary (PT_BINARY) is that variable size; a COUNT field followed by that many bytes with Property Type Value 0x0102,%x02.01.");
                    break;

                case PropertyNames.PidTagAttachFlags:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R618
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        618,
                        @"[In PidTagAttachFlags Property] Type: PtypInteger32, as a bit field ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifyR620 = false;

                    int valueOfPidTagAttachFlags = (int)propertyObj.Value;
                    int possibleValueOfPidTagAttachFlags = 0 | 0x00000001 | 0x00000002 | 0x00000004;

                    if ((valueOfPidTagAttachFlags | possibleValueOfPidTagAttachFlags) == possibleValueOfPidTagAttachFlags)
                    {
                        isVerifyR620 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R620
                    Site.CaptureRequirementIfIsTrue(
                        isVerifyR620,
                        620,
                        @"[In PidTagAttachFlags Property] This property [PidTagAttachFlags] contains a bitwise OR of zero or more of the following flags [0x00000001, 0x00000002 and 0x00000004].");
                    break;

                case PropertyNames.PidTagAttachTransportName:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R622
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        622,
                        @"[In PidTagAttachTransportName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R623");

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R623
                        // MS-OXCMSG_R623 can be indirectly verified if the value of PidTagAttachTransportName is not null.
                        this.Site.CaptureRequirementIfIsNotNull(
                            propertyObj.Value,
                            623,
                            @"[In PidTagAttachTransportName Property] The PidTagAttachTransportName property ([MS-OXPROPS] section 2.601) contains the name of an attachment file, modified so that it can be correlated with TNEF messages, as specified in [MS-OXTNEF].");
                    }

                    break;

                case PropertyNames.PidTagAttachEncoding:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R624
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        624,
                        @"[In PidTagAttachEncoding Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachAdditionalInformation:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R629
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        629,
                        @"[In PidTagAttachAdditionalInformation Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachmentLinkId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R632
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        632,
                        @"[In PidTagAttachmentLinkId Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachmentFlags:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R635
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        635,
                        @"[In PidTagAttachmentFlags Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachmentHidden:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R638
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        638,
                        @"[In PidTagAttachmentHidden Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachMimeTag:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R959
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        959,
                        @"[In MIME properties] The type of PidTagAttachMimeTag ([MS-OXPROPS] section 2.593) is PtypString.");

                    break;

                case PropertyNames.PidTagAttachContentId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R960
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        960,
                        @"[In MIME Properties] The type of PidTagAttachContentId ([MS-OXPROPS] section 2.578) is PtypString.");
                    break;

                case PropertyNames.PidTagAttachContentLocation:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R961
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        961,
                        @"[In MIME Properties] The type of PidTagAttachContentLocation ([MS-OXPROPS] section 2.579) is PtypString.");
                    break;

                case PropertyNames.PidTagAttachContentBase:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R962
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        962,
                        @"[In MIME Properties] The type of PidTagAttachContentBase ([MS-OXPROPS] section 2.577) is PtypString.");
                    break;

                case PropertyNames.PidLidSmartNoAttach:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R89
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        89,
                        @"[In PidLidSmartNoAttach Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidPrivate:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R92
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        92,
                        @"[In PidLidPrivate Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidSideEffects:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R94
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        94,
                        @"[In PidLidSideEffects Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    bool isVerifiedR1076 = false;
                    int valueOfPidLidSideEffects = (int)propertyObj.Value;
                    int possibleValueOfPidLidSideEffects = 0 | 0x00000001 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000100 | 0x00000400 | 0x00000800 | 0x00001000 | 0x00002000 | 0x00004000;
                    if ((valueOfPidLidSideEffects | possibleValueOfPidLidSideEffects) == possibleValueOfPidLidSideEffects)
                    {
                        isVerifiedR1076 = true;
                    }

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1076
                    this.Site.CaptureRequirementIfIsTrue(
                        isVerifiedR1076,
                        1076,
                        @"[In PidLidSideEffects Property] This property [PidLidSideEffects] is set to a bitwise OR of zero or more of the following flags [seOpenToDelete, seNoFrame, seCoerceToInbox, seOpenToCopy, seOpenToMove, seOpenForCtxMenu, seCannotUndoDelete, seCannotUndoCopy, seCannotUndoMove, seHasScript and seOpenToPermDelete].");
                    break;

                case PropertyNames.PidLidCommonStart:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R111
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        111,
                        @"[In PidLidCommonStart Property] Type: PtypTime ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidCategories:
                     // Add the debug information
                     this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1153");

                     // Verify MS-OXCMSG requirement: MS-OXCMSG_R1153
                     this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                         PropertyType.PtypMultipleString,
                         propertyObj.ValueType,
                         1153,
                         @"[In PidLidCategories Property] Type: PtypMultipleString ([MS-OXCDATA] section 2.11.1).");

                     break;

                case PropertyNames.PidLidCommonEnd:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R115
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        115,
                        @"[In PidLidCommonEnd Property] Type: PtypTime ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAutoForwarded:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1106
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1106,
                        @"[In PidTagAutoForwarded Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAutoForwardComment:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1152
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1152,
                        @"[In PidTagAutoForwardComment Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidClassified:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1159
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1159,
                        @"[In PidLidClassified Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagInternetReferences:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1161
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1161,
                        @"[In PidTagInternetReferences Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1162");

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R1162
                        // Each message Id is 8 bytes and the first 2 bytes indicate the length of propertyObj.Value, so MS-OXCMSG_R1162 can be verified when (propertyObj.Value.ToString().Length - 2) % 8 == 0.
                        this.Site.CaptureRequirementIfAreEqual<int>(
                            0,
                            (propertyObj.Value.ToString().Length - 2) % 8,
                            1162,
                            @"[In PidTagInternetReferences Property] The PidTagInternetReferences property ([MS-OXPROPS] section 2.738) contains a list of message IDs (MIDs), as specified in [MS-OXCDATA] section 2.2.1.2, that specify the messages to which this reply is related.");
                    }

                    break;

                case PropertyNames.PidLidInfoPathFormName:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1165
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1165,
                        @"[In PidLidInfoPathFormName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagMimeSkeleton:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1168
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        1168,
                        @"[In PidTagMimeSkeleton Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagTnefCorrelationKey:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1175
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        1175,
                        @"[In PidTagTnefCorrelationKey Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAddressBookDisplayNamePrintable:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2197
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2197,
                        @"[In PidTagAddressBookDisplayNamePrintable Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagCreatorEntryId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1181
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        1181,
                        @"[In PidTagCreatorEntryId Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        AddressBookEntryID creatorEntryId = new AddressBookEntryID();
                        creatorEntryId.Deserialize((byte[])propertyObj.Value, 0);

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

                        // Verify MS-OXCDATA requirement: MS-OXCDATA_R2319
                        this.Site.CaptureRequirementIfAreEqual<uint>(
                            0x00000000,
                            creatorEntryId.Flags,
                            CdataShortName,
                            2319,
                            @"[In Address Book EntryID Structure] Flags (4 bytes): This value MUST be set to 0x00000000.");

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

                        // Verify MS-OXCDATA requirement: MS-OXCDATA_R2753
                        this.Site.CaptureRequirementIfAreEqual<uint>(
                            0x00000000,
                            creatorEntryId.Flags,
                            CdataShortName,
                            2753,
                            @"[In Address Book EntryID Structure] However, in any EntryID stored in a property value, these 4 bytes [Flags] MUST be zero, indicating a long-term EntryID.");

                        byte[] expectedValue = new byte[] { 0xDC, 0xA7, 0x40, 0xC8, 0xC0, 0x42, 0x10, 0x1A, 0xB4, 0xB9, 0x08, 0x00, 0x2B, 0x2F, 0xE1, 0x82 };

                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2320. The value of ProviderUID is {0}.", creatorEntryId.ProviderUID);

                        // Verify MS-OXCDATA requirement: MS-OXCDATA_R2320
                        bool isVerifiedR2320 = Common.CompareByteArray(expectedValue, creatorEntryId.ProviderUID);

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR2320,
                            CdataShortName,
                            2320,
                            @"[In Address Book EntryID Structure] This value [ProviderUID] is used to route EntryIDs to the correct provider and MUST be set to %xDC.A7.40.C8.C0.42.10.1A.B4.B9.08.00.2B.2F.E1.82.");

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

                        uint version = BitConverter.ToUInt32((byte[])creatorEntryId.Version, 0);

                        // Verify MS-OXCDATA requirement: MS-OXCDATA_R2321
                        this.Site.CaptureRequirementIfAreEqual<uint>(
                            0x00000001,
                            version,
                            CdataShortName,
                            2321,
                            @"[In Address Book EntryID Structure] Version (4 bytes): This value MUST be set to %x01.00.00.00.");

                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCDATA_R2323. The value of Type is {0}.", creatorEntryId.Type);

                        // Verify MS-OXCDATA requirement: MS-OXCDATA_R2323
                        bool isVerifiedR2323 = creatorEntryId.Type == 0x00000000
                            || creatorEntryId.Type == 0x00000001
                            || creatorEntryId.Type == 0x00000002
                            || creatorEntryId.Type == 0x00000003
                            || creatorEntryId.Type == 0x00000004
                            || creatorEntryId.Type == 0x00000005
                            || creatorEntryId.Type == 0x00000006
                            || creatorEntryId.Type == 0x00000100
                            || creatorEntryId.Type == 0x00000101
                            || creatorEntryId.Type == 0x00000102
                            || creatorEntryId.Type == 0x00000200;

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR2323,
                            CdataShortName,
                            2323,
                            @"[In Address Book EntryID Structure,Type (4 bytes): ] It [Type] MUST be one of the values [0x00000000 %x00.00.00.00,0x00000001 %x01.00.00.00,0x00000002 %x02.00.00.00,0x00000003 %x03.00.00.00,0x00000004 %x04.00.00.00,0x00000005 %x05.00.00.00,0x00000006 %x06.00.00.00,0x00000100 %x00.01.00.00,0x00000101 %x01.01.00.00,0x00000102 %x02.01.00.00,0x00000200 %x00.02.00.00] from the following table.");
                    }

                    break;

                case PropertyNames.PidTagLastModifierEntryId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1184
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        1184,
                        @"[In PidTagLastModifierEntryId Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidAgingDontAgeMe:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1187
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1187,
                        @"[In PidLidAgingDontAgeMe Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidCurrentVersion:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1190
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        1190,
                        @"[In PidLidCurrentVersion Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidCurrentVersionName:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1192
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1192,
                        @"[In PidLidCurrentVersionName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAlternateRecipientAllowed:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1194
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1194,
                        @"[In PidTagAlternateRecipientAllowed Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagResponsibility:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1196
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1196,
                        @"[In PidTagResponsibility Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagHasNamedProperties:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1203
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        1203,
                        @"[In PidTagHasNamedProperties Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagRecipientOrder:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1205
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        1205,
                        @"[In PidTagRecipientOrder Property] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidNameAcceptLanguage:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1207
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1207,
                        @"[In PidNameContentBase Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidNameContentBase:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1209
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1209,
                        @"[In PidNameAcceptLanguage Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagPurportedSenderDomain:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1213
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1213,
                        @"[In PidTagPurportedSenderDomain Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagStoreEntryId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1215
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        1215,
                        @"[In PidTagStoreEntryId Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagTrustSender:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1218
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypInteger32,
                        propertyObj.ValueType,
                        1218,
                        @"[In PidTagTrustSender] Type: PtypInteger32 ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1220. The value of PidTagTrustSender is {0}.", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R1220
                        bool isVerifiedR1220 = (int)propertyObj.Value == 0 || (int)propertyObj.Value == 1;

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR1220,
                            1220,
                            @"[In PidTagTrustSender] This property [PidTagTrustSender] is a Boolean integer.");

                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1221. The value of PidTagTrustSender is {0}.", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R1221
                        bool isVerifiedR1221 = (int)propertyObj.Value == 0 || (int)propertyObj.Value == 1;

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR1221,
                            1221,
                            @"[In PidTagTrustSender] Valid values [0x00000000, 0x00000001] are given in the following table [table in section 2.2.1.45].");
                    }

                    break;

                case PropertyNames.PidTagSubject:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1237
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1237,
                        @"[In PidTagSubject Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidNameContentClass:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1248
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1248,
                        @"[In PidNameContentClass Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagLocalCommitTime:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1887
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        1887,
                        @"[In PidTagLocalCommitTime Property] Type: PtypTime ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagRtfCompressed:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2065
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        2065,
                        @"[In PidTagRtfCompressed Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagRtfInSync:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2067
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        2067,
                        @"[In PidTagRtfInSync Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagBodyContentId:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2071
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2071,
                        @"[In PidTagBodyContentId Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");

                    if (PropertyHelper.IsPropertyValid(propertyObj))
                    {
                        Guid valueOfPidTagBodyContentId;

                        // Add the debug information
                        this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2072. The value of PidTagBodyContentId is {0}.", propertyObj.Value);

                        // Verify MS-OXCMSG requirement: MS-OXCMSG_R2072
                        bool isVerifiedR2072 = Guid.TryParse(propertyObj.Value.ToString(), out valueOfPidTagBodyContentId);

                        this.Site.CaptureRequirementIfIsTrue(
                            isVerifiedR2072,
                            2072,
                            @"[In PidTagBodyContentId Property] The PidTagBodyContentId property ([MS-OXPROPS] section 2.610) contains a GUID corresponding to the current message body.");
                    }

                    break;

                case PropertyNames.PidTagBodyContentLocation:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2075
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2075,
                        @"[In PidTagBodyContentLocation Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagHtml:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2081
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        2081,
                        @"[In PidTagHtml Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagPolicyTag:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R160
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBinary,
                        propertyObj.ValueType,
                        2111,
                        @"[In PidTagPolicyTag Property] Type: PtypBinary ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagArchiveDate:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R212
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypTime,
                        propertyObj.ValueType,
                        2172,
                        @"[In PidTagArchiveDate Property] Type: PtypTime ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagDisplayName:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R226
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        226,
                        @"[In PidTagDisplayName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachPathname:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R607
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        607,
                        @"[In PidTagAttachPathname Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachDataObject:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R237
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypComObject,
                        propertyObj.ValueType,
                        237,
                        @"[In PidTagAttachDataObject Property] Type: PtypObject ([MS-OXCDATA] section 2.11.1).");

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

                    // Verify MS-OXCDATA requirement: MS-OXCDATA_R2722
                    bool isVerifiedR2722 = propertyObj.ValueTypeCode == 0x000D;
                    this.Site.CaptureRequirementIfIsTrue(
                        isVerifiedR2722,
                        CdataShortName,
                        2722,
                        @"[In Property Value Types] PtypObject or PtypEmbeddedTable (PT_OBJECT) is  that  the property value is a COM object, as specified in section 2.11.1.5 with Property Type Value 0x000D,%x0D.00.");
                    break;

                case PropertyNames.PidTagTextAttachmentCharset:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1278
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1278,
                        @"[In PidTagTextAttachmentCharset Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagAttachPayloadClass:

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1554
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1554,
                        @"[In MIME Properties] The type of PidTagAttachPayloadClass ([MS-OXPROPS] section 2.596) is PtypString.");
                    break;

                case PropertyNames.PidTagAttachPayloadProviderGuidString:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1553");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1553
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1553,
                        @"[In MIME Properties] The type of PidTagAttachPayloadProviderGuidString ([MS-OXPROPS] section 2.597) is PtypString.");
                    break;
                case PropertyNames.PidNameContentType:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2037");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2037
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2037,
                        @"[In PidNameContentType Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;
                case PropertyNames.PidLidClassification:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1155");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1155
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1155,
                        @"[In PidLidClassification] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidLidClassificationDescription:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1157");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R1157
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        1157,
                        @"[In PidLidClassificationDescription Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagCreatorName:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2040");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2040
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2040,
                        @"[In PidTagCreatorName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;
                case PropertyNames.PidTagRead:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2044");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2044
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypBoolean,
                        propertyObj.ValueType,
                        2044,
                        @"[In PidTagRead Property] Type: PtypBoolean ([MS-OXCDATA] section 2.11.1).");
                    break;
                case PropertyNames.PidTagBodyHtml:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2063");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2063
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2063,
                        @"[In PidTagBodyHtml Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;

                case PropertyNames.PidTagRecipientDisplayName:
                    // Add the debug information
                    this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R2046");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R2046
                    this.Site.CaptureRequirementIfAreEqual<PropertyType>(
                        PropertyType.PtypString,
                        propertyObj.ValueType,
                        2046,
                        @"[In PidTagRecipientDisplayName Property] Type: PtypString ([MS-OXCDATA] section 2.11.1).");
                    break;
                case PropertyNames.PidNameKeywords:
                    // Add the debug information
                    Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R108");

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R108
                    Site.CaptureRequirementIfAreEqual<PropertyType>(
                         PropertyType.PtypMultipleString,
                         propertyObj.ValueType,
                         108,
                         @"[In PidNameKeywords Property] Type: PtypMultipleString ([MS-OXCDATA] section 2.11.1).");

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

                    // Verify MS-OXCMSG requirement: MS-OXCMSG_R110
                    Site.CaptureRequirementIfIsTrue(
                         ((string[])propertyObj.Value).Length<256,
                         110,
                         @"[In PidNameKeywords Property] The length of each string within the multivalue string is less than 256 characters.");

                    break;
                default:
                    break;
            }
        }
        public void MSOXCMSG_S01_TC03_PropertiesInRopCreateMessageInitialization()
        {
            this.CheckMapiHttpIsSupported();
            this.ConnectToServer(ConnectionType.PrivateMailboxServer);

            #region Call RopLogon to logon the private mailbox.
            RopLogonResponse logonResponse = this.Logon(LogonType.Mailbox, out this.insideObjHandle);
            #endregion

            #region Call RopCreateMessage to create a Message object.
            uint targetMessageHandle = this.CreatedMessage(logonResponse.FolderIds[4], this.insideObjHandle);
            #endregion

            #region Call RopGetPropertiesSpecific to get properties for created message before save message.
            // Prepare property Tag 
            PropertyTag[] tagArray = this.GetPropertyTagsForInitializeMessage();

            // Get properties for Created Message
            RopGetPropertiesSpecificRequest getPropertiesSpecificRequest = new RopGetPropertiesSpecificRequest()
            {
                RopId = (byte)RopId.RopGetPropertiesSpecific,
                LogonId = CommonLogonId, // The logonId 0x00 is associated with this operation.
                InputHandleIndex = CommonInputHandleIndex, // This index specifies the location 0x00 in the Server Object Handle Table where the handle for the input Server Object is stored. 
                PropertySizeLimit = 0xFFFF, // This value specifies the maximum number of the property
                PropertyTagCount = (ushort)tagArray.Length,
                PropertyTags = tagArray
            };
            this.ResponseSOHs = this.MSOXCMSGAdapter.DoRopCall(getPropertiesSpecificRequest, targetMessageHandle, ref this.response, ref this.rawData, GetPropertiesFlags.None);
            RopGetPropertiesSpecificResponse getPropertiesSpecificResponse = (RopGetPropertiesSpecificResponse)this.response;
            Site.Assert.AreEqual<uint>(TestSuiteBase.Success, getPropertiesSpecificResponse.ReturnValue, "Call RopGetPropertiesSpecific should success.");

            List<PropertyObj> ps = PropertyHelper.GetPropertyObjFromBuffer(tagArray, getPropertiesSpecificResponse);

            // Parse property response get Property Value to verify test  case requirement
            PropertyObj pidTagImportance = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagImportance);
            PropertyObj pidTagMessageClass = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagMessageClass);
            PropertyObj pidTagSensitivity = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagSensitivity);
            PropertyObj pidTagDisplayBcc = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagDisplayBcc);
            PropertyObj pidTagDisplayCc = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagDisplayCc);
            PropertyObj pidTagDisplayTo = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagDisplayTo);
            PropertyObj pidTagHasAttachments = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagHasAttachments);
            PropertyObj pidTagTrustSender = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagTrustSender);
            PropertyObj pidTagAccess = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagAccess);
            PropertyObj pidTagAccessLevel = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagAccessLevel);
            PropertyObj pidTagCreationTime = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagCreationTime);
            PropertyObj pidTagLastModificationTime = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLastModificationTime);
            PropertyObj pidTagSearchKey = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagSearchKey);
            PropertyObj pidTagCreatorName = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagCreatorName);
            PropertyObj pidTagLastModifierName = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLastModifierName);
            PropertyObj pidTagHasNamedProperties = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagHasNamedProperties);
            PropertyObj pidTagLocalCommitTime = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLocalCommitTime);
            PropertyObj pidTagMessageFlags = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagMessageFlags);
            PropertyObj pidTagCreatorEntryId = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagCreatorEntryId);
            PropertyObj pidTagLastModifierEntryId = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLastModifierEntryId);
            PropertyObj pidTagMessageLocaleId = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagMessageLocaleId);
            PropertyObj pidTagLocaleId = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLocaleId);


            #region Verify requirements
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R987");

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R987
            this.Site.CaptureRequirementIfAreNotEqual<uint>(
                0x00000040,
                Convert.ToUInt32(pidTagMessageFlags.Value) & 0x00000040,
                987,
                @"[In RopCreateMessage ROP Request Buffer] [AssociatedFlag] Value 0x00 means the message to be created is not an FAI message.");

            int pidTagImportanceInitialValue = Convert.ToInt32(pidTagImportance.Value);

            // Add the debug information
            Site.Log.Add(
                LogEntryKind.Debug,
                "Verify MS-OXCMSG_R341,the actual initial Data of PidTagImportance is {0}",
                pidTagImportanceInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R341
            Site.CaptureRequirementIfAreEqual<int>(
                0x00000001,
                pidTagImportanceInitialValue,
                341,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial data of PidTagImportance is] 0x00000001.");

            string pidTagMessageClassInitialValue = Convert.ToString(pidTagMessageClass.Value);

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R342,the actual initial Data of PidTagMessageClass is {0}", pidTagMessageClassInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R342
            Site.CaptureRequirementIfAreEqual<string>(
                "IPM.Note",
                pidTagMessageClassInitialValue,
                342,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagMessageClass is] IPM.Note.");

            int pidTagSensitivityInitialValue = Convert.ToInt32(pidTagSensitivity.Value);

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R343,the actual initial Data of PidTagSensitivity is {0}", pidTagSensitivityInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R343
            Site.CaptureRequirementIfAreEqual<int>(
                0x00000000,
                pidTagSensitivityInitialValue,
                343,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagSensitivity is] 0x00000000.");

            string pidTagDisplayBccInitialValue = Convert.ToString(pidTagDisplayBcc.Value);

            if (Common.IsRequirementEnabled(344, this.Site))
            {
                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R344,the actual initial Data of PidTagDisplayBcc is {0}",
                    pidTagDisplayBccInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R344
                Site.CaptureRequirementIfAreEqual<string>(
                    string.Empty,
                    pidTagDisplayBccInitialValue,
                    344,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagDisplayBcc is] """".");
            }

            if (Common.IsRequirementEnabled(345, this.Site))
            {
                string pidTagDisplayCcInitialValue = Convert.ToString(pidTagDisplayCc.Value);

                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R345,the actual initial Data of PidTagDisplayCc is {0}",
                    pidTagDisplayCcInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R345
                Site.CaptureRequirementIfAreEqual<string>(
                    string.Empty,
                    pidTagDisplayCcInitialValue,
                    345,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagDisplayCc is] """".");
            }

            if (Common.IsRequirementEnabled(346, this.Site))
            {
                string pidTagDisplayToInitialValue = Convert.ToString(pidTagDisplayTo.Value);

                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R346,the actual initial Data of PidTagDisplayTo is {0}",
                    pidTagDisplayToInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R346
                Site.CaptureRequirementIfAreEqual<string>(
                    string.Empty,
                    pidTagDisplayToInitialValue,
                    346,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagDisplayTo is] """".");
            }

            int pidTagHasAttachmentsInitialValue = Convert.ToInt32(pidTagHasAttachments.Value);

            // Add the debug information
            Site.Log.Add(
                LogEntryKind.Debug,
                "Verify MS-OXCMSG_R349,the actual initial Data of PidTagHasAttachments is {0}",
                pidTagHasAttachmentsInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R349
            Site.CaptureRequirementIfAreEqual<int>(
                0x00,
                pidTagHasAttachmentsInitialValue,
                349,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagHasAttachments is] 0x00.");

            if (Common.IsRequirementEnabled(1713, this.Site))
            {
                int pidTagTrustSenderInitialValue = Convert.ToInt32(pidTagTrustSender.Value);

                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R352,the actual initial Data of PidTagTrustSender is {0}",
                    pidTagTrustSenderInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R352
                Site.CaptureRequirementIfAreEqual<int>(
                    0x00000001,
                    pidTagTrustSenderInitialValue,
                    352,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagTrustSender is] 0x00000001.");

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

                // It indicates that Exchange 2007 supports the PidTagTrustSender property if code can run here.
                this.Site.CaptureRequirement(
                    1713,
                    @"[In Appendix A: Product Behavior] Implementation does support the PidTagTrustSender property. (Exchange 2007 follows this behavior.)");
            }

            int pidTagAccessInitialValue = Convert.ToInt32(pidTagAccess.Value);
            if (Common.IsRequirementEnabled(1915, this.Site))
            {
                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R1915,the actual initial Data of PidTagAccess is {0}",
                    pidTagAccessInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R1915
                Site.CaptureRequirementIfAreEqual<int>(
                    0x00000003,
                    pidTagAccessInitialValue,
                    1915,
                    @"[In Appendix A: Product Behavior] Implementation does initialize the PidTagAccess property to 0x00000003. (Exchange 2007 and 2010 follow this behavior.)");
            }

            if (Common.IsRequirementEnabled(1914, this.Site))
            {
                // Add the debug information
                Site.Log.Add(
                    LogEntryKind.Debug,
                    "Verify MS-OXCMSG_R1914,the actual initial Data of PidTagAccess is {0}",
                    pidTagAccessInitialValue);

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R1914
                this.Site.CaptureRequirementIfAreEqual<int>(
                    0x00000007,
                    pidTagAccessInitialValue,
                    1914,
                    @"[In Appendix A: Product Behavior] Implementation does initialize the PidTagAccess property to 0x00000007. (<23> Section 3.2.5.2: Exchange 2013 follows this behavior.)");
            }

            int pidTagAccessLevelInitialValue = Convert.ToInt32(pidTagAccessLevel.Value);

            // Add the debug information
            Site.Log.Add(
                LogEntryKind.Debug,
                "Verify MS-OXCMSG_R354,the actual initial Data of PidTagAccessLevel is {0}",
                pidTagAccessLevelInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R354
            Site.CaptureRequirementIfAreEqual<int>(
                0x00000001,
                pidTagAccessLevelInitialValue,
                354,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagAccessLevel is] 0x00000001.");

            DateTime pidTagCreationTimeInitialValue = Convert.ToDateTime(pidTagCreationTime.Value);

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R2034
            this.Site.CaptureRequirementIfIsNotNull(
                pidTagCreationTimeInitialValue,
                2034,
                @"[In Receiving a RopCreateMessage ROP Request] PidTagCreationTime (section 2.2.2.3) [will be initialized when calling RopCreateMessage ROP].");

            if (Common.IsRequirementEnabled(1912, this.Site))
            {
                string pidTagCreatorNameInitialValue = Convert.ToString(pidTagCreatorName.Value).ToLower();
                string creatorName = Common.GetConfigurationPropertyValue("AdminUserName", this.Site).ToLower();

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R360
                Site.CaptureRequirementIfAreEqual<string>(
                    creatorName,
                    pidTagCreatorNameInitialValue,
                    360,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagCreatorName is] Name of the creator.");

                bool isVerifyR357 = Convert.ToDateTime(pidTagLastModificationTime.Value) == pidTagCreationTimeInitialValue;

                // Above If condition has verified the initial data of PidTagLastModificationTime.
                Site.CaptureRequirementIfIsTrue(
                    isVerifyR357,
                    357,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagLastModification is Same] as PidTagCreationTime property.");

                string pidTagLastModifierNameInitialValue = Convert.ToString(pidTagLastModifierName.Value).ToLower();

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R362
                Site.CaptureRequirementIfAreEqual<string>(
                    pidTagCreatorNameInitialValue,
                    pidTagLastModifierNameInitialValue,
                    362,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagLastModifierName is] Same as PidTagCreatorName property.");

                AddressBookEntryID creatorEntryId = new AddressBookEntryID();
                creatorEntryId.Deserialize((byte[])pidTagCreatorEntryId.Value, 0);

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R361
                this.Site.CaptureRequirementIfIsInstanceOfType(
                    creatorEntryId,
                    typeof(AddressBookEntryID),
                    361,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagCreatorEntryId is] Address Book EntryID of the creator.");

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R1182
                this.Site.CaptureRequirementIfIsInstanceOfType(
                     creatorEntryId,
                     typeof(AddressBookEntryID),
                    1182,
                    @"[In PidTagCreatorEntryId Property] The PidTagCreatorEntryId property ([MS-OXPROPS] section 2.646) specifies the original author of the message according to their address book EntryID.");

                AddressBookEntryID modifierEntryId = new AddressBookEntryID();
                modifierEntryId.Deserialize((byte[])pidTagLastModifierEntryId.Value, 0);

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R363
                this.Site.CaptureRequirementIfAreEqual<AddressBookEntryID>(
                    creatorEntryId,
                    modifierEntryId,
                    363,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagLastModifierEntryId is] Same as PidTagCreatorEntryId property.");

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R1185
                this.Site.CaptureRequirementIfIsInstanceOfType(
                    modifierEntryId,
                    typeof(AddressBookEntryID),
                    1185,
                    @"[In PidTagLastModifierEntryId Property] The PidTagLastModifierEntryId property ([MS-OXPROPS] section 2.754) specifies the last user to modify the contents of the message according to their address book EntryID.");

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R359
                this.Site.CaptureRequirementIfIsNotNull(
                    pidTagMessageLocaleId.Value,
                    359,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagMessageLocaleId is] The Logon object LocaleID.");

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R365
                this.Site.CaptureRequirementIfAreEqual<object>(
                    pidTagMessageLocaleId.Value,
                    pidTagLocaleId.Value,
                    365,
                    @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagLocaleId is] Same as PidTagMessageLocaleId property.");

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

                // MS-OXCMSG_R1912 can be verified if code can run here.
                this.Site.CaptureRequirement(
                    1912,
                    @"[In Appendix A: Product Behavior] Implementation does initialize the properties: PidTagCreatorName, PidTagCreatorEntryId, PidTagLastModifierName, PidTagLastModifierEntryId, PidTagLastModificationTime, PidTagMessageLocaleId  and PidTagLocaleId. (Exchange 2007 and Exchange 2010 follow this behavior.)");
            }

            // MS-OXCMSG_R358 can be verified if the value of PidTagSearchKey is not null since whether server generated SearchKey is unknown to client.
            Site.CaptureRequirementIfIsNotNull(
                pidTagSearchKey,
                358,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagSearchKey is] Server generated Search Key.");

            int pidTagHasNamedPropertiesInitialValue = Convert.ToInt32(pidTagHasNamedProperties.Value);

            // Add the debug information
            Site.Log.Add(
                LogEntryKind.Debug,
                "Verify MS-OXCMSG_R364,the actual initial Data of PidTagHasNamedProperties is {0}",
                pidTagHasNamedPropertiesInitialValue);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R364
            Site.CaptureRequirementIfAreEqual<int>(
                0x00,
                pidTagHasNamedPropertiesInitialValue,
                364,
                @"[In Receiving a RopCreateMessage ROP Request] [The Initial Data of PidTagHasNamedProperties is] 0x00.");

            if(Common.IsRequirementEnabled(3015,this.Site))
            {
                // Add the debug information
                this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R3015");

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R3015
                this.Site.CaptureRequirementIfAreEqual<int>(
                    0x00000009,
                    Convert.ToInt32(pidTagMessageFlags.Value),
                    3015,
                    @"[In Appendix A: Product Behavior] [The Initial data of PidTagMessageFlags] will be 0x00000009 (the mfEverRead flag combined by using the bitwise OR operation with the value 0x00000009) if the client does not explicitly set the read state. (<22> Section 3.2.5.2: Exchange 2007 follows this behavior.)");
            }

            if(Common.IsRequirementEnabled(3016,this.Site))
            {
                // Add the debug information
                this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R3016");

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R3016
                this.Site.CaptureRequirementIfAreEqual<int>(
                    0x00000409,
                    Convert.ToInt32(pidTagMessageFlags.Value),
                    3016,
                    @"[In Appendix A: Product Behavior] [The Initial data of PidTagMessageFlags] will be 0x00000409 (the mfEverRead flag combined by using the bitwise OR operation with the value 0x00000009) if the client does not explicitly set the read state. (Exchange 2010 and above follow this behavior.)");

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

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R1140
                this.Site.CaptureRequirementIfAreEqual<int>(
                    0x00000400,
                    Convert.ToInt32(pidTagMessageFlags.Value)& 0x00000400,
                    1140,
                    @"[In PidTagMessageFlags Property] [mfEverRead (0x00000400)] The message has been read at least once.");
            }

            if(Common.IsRequirementEnabled(3006,this.Site))
            {
                // Add the debug information
                this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R3006");

                // Verify MS-OXCMSG requirement: MS-OXCMSG_R3006
                this.Site.CaptureRequirementIfIsTrue(
                    (Convert.ToInt32(pidTagMessageFlags.Value) & 0x00000400)== 0x00000400 && (Convert.ToInt32(pidTagMessageFlags.Value) & 0x00000001) == 0x00000001,
                    3006,
                    @"[In Appendix A: Product Behavior] [mfEverRead (0x00000400)] This flag is set by the implementation whenever the mfRead flag is set. (Exchange 2010 and above follow this behavior.)");
            }

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R510
            this.Site.CaptureRequirementIfAreEqual<uint>(
                0x00000001,
                Convert.ToUInt32(pidTagMessageFlags.Value) & 0x00000001,
                510,
                @"[In PidTagMessageFlags Property] [mfRead (0x00000001)] The message is marked as having been read.");

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R512
            this.Site.CaptureRequirementIfAreEqual<uint>(
                0x00000008,
                Convert.ToUInt32(pidTagMessageFlags.Value) & 0x00000008,
                512,
                @"[In PidTagMessageFlags Property] [mfUnsent (0x00000008)] The message is still being composed and is treated as a Draft Message object.");

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R73
            this.Site.CaptureRequirementIfAreEqual<uint>(
                0x00000001,
                Convert.ToUInt32(pidTagImportance.Value),
                73,
                @"[In PidTagImportance Property] [The value 0x00000001 indicates the level of importance assigned by the end user to the Message object is] Normal importance.");

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R513
            this.Site.CaptureRequirementIfAreEqual<int>(
                0x00000008,
                Convert.ToInt32(pidTagMessageFlags.Value) & (int)MessageFlags.MfUnsent,
                513,
                @"[In PidTagMessageFlags Property] [mfUnsent (0x00000008)] This bit is cleared by the server when responding to the RopSubmitMessage ROP ([MS-OXCROPS] section 2.2.7.1) with a success code.");

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

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R84
            this.Site.CaptureRequirementIfAreEqual<int>(
                0x00000000,
                Convert.ToInt32(pidTagSensitivity.Value),
                84,
                @"[In PidTagSensitivity Property] [The value 0x00000000 indicates the sender's assessment of the sensitivity of the Message object is] Normal.");
            #endregion
            #endregion

            #region Call RopSaveChangesMessage to save created message.
            RopSaveChangesMessageResponse saveChangesMessageResponse = this.SaveMessage(targetMessageHandle, (byte)SaveFlags.ForceSave);
            Site.Assert.AreEqual<uint>(TestSuiteBase.Success, saveChangesMessageResponse.ReturnValue, "Call RopSaveChangesMessage should success.");
            #endregion

            #region Call RopGetPropertiesSpecific to get properties for created message after save message.
            this.ResponseSOHs = this.MSOXCMSGAdapter.DoRopCall(getPropertiesSpecificRequest, targetMessageHandle, ref this.response, ref this.rawData, GetPropertiesFlags.None);
            getPropertiesSpecificResponse = (RopGetPropertiesSpecificResponse)this.response;
            Site.Assert.AreEqual<uint>(TestSuiteBase.Success, getPropertiesSpecificResponse.ReturnValue, "Call RopGetPropertiesSpecific should success.");

            ps = PropertyHelper.GetPropertyObjFromBuffer(tagArray, getPropertiesSpecificResponse);

            PropertyObj pidTagLocalCommitTimeAfterSave = PropertyHelper.GetPropertyByName(ps, PropertyNames.PidTagLocalCommitTime);
            #region Verify MS-OXCMSG_R1890
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMSG_R1890, The value of PidTagLocalCommitTime is {0}", pidTagLocalCommitTimeAfterSave.Value);

            // Verify MS-OXCMSG requirement: MS-OXCMSG_R1890
            bool isVerifiedR1890 = pidTagLocalCommitTime.Value != pidTagLocalCommitTimeAfterSave.Value;

            this.Site.CaptureRequirementIfIsTrue(
                isVerifiedR1890,
                1890,
                @"[In Receiving a RopSaveChangesMessage ROP Request] The server sets the PidTagLocalCommitTime property (section 2.2.1.49) when the RopSaveChangesMessage ROP is processed.");
            #endregion
            #endregion

            #region Call RopRelease to release created message.
            this.ReleaseRop(targetMessageHandle);
            #endregion
        }