This class specifies the content tag for each BLOB heap.
Inheritance: SpecializedKnowledgeData
示例#1
0
        /// <summary>
        /// This method is used to test Content Tag Knowledge related adapter requirements.
        /// </summary>
        /// <param name="instance">Specify the instance which need to be verified.</param>
        /// <param name="site">Specify the ITestSite instance.</param>
        public void VerifyContentTagKnowledge(ContentTagKnowledge instance, ITestSite site)
        {
            // If the instance is not null and there are no parsing errors, then the Content Tag Knowledge related adapter requirements can be directly captured.
            if (null == instance)
            {
                site.Assert.Fail("The instance of type ContentTagKnowledge is null due to parsing error or type casting error.");
            }

            // Verify the stream object header related requirements.
            this.ExpectStreamObjectHeaderStart(instance.StreamObjectHeaderStart, instance.GetType(), site);

            // Capture requirement MS-FSSHTTPB_R381, if stream object start type is StreamObjectHeaderStart16bit.
            site.CaptureRequirementIfAreEqual <Type>(
                typeof(StreamObjectHeaderStart16bit),
                instance.StreamObjectHeaderStart.GetType(),
                "MS-FSSHTTPB",
                381,
                @"[In Content Tag Knowledge] Content Tag Start (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the content tag knowledge start.");

            // Directly capture requirement MS-FSSHTTPB_R382, if there are no parsing errors.
            site.CaptureRequirement(
                "MS-FSSHTTPB",
                382,
                @"[In Content Tag Knowledge] Content Tag Entry Array (variable): An array of content tag knowledge entries (section 2.2.1.13.5.1) that specifies the BLOB heap entries.");

            // Directly capture requirement MS-FSSHTTPB_R383, if there are no parsing errors.
            site.CaptureRequirement(
                "MS-FSSHTTPB",
                383,
                @"[In Content Tag Knowledge] Content Tag Knowledge End (1 byte): An 8-bit stream object header (section 2.2.1.5.3) that specifies the content tag knowledge end.");

            // Verify the stream object header end related requirements.
            this.ExpectStreamObjectHeaderEnd(instance.StreamObjectHeaderEnd, instance.GetType(), site);
            this.ExpectCompoundObject(instance.StreamObjectHeaderStart, site);
        }
        /// <summary>
        /// This method is used to test Content Tag Knowledge related adapter requirements.
        /// </summary>
        /// <param name="instance">Specify the instance which need to be verified.</param>
        /// <param name="site">Specify the ITestSite instance.</param>
        public void VerifyContentTagKnowledge(ContentTagKnowledge instance, ITestSite site)
        {
            // If the instance is not null and there are no parsing errors, then the Content Tag Knowledge related adapter requirements can be directly captured.
            if (null == instance)
            {
                site.Assert.Fail("The instance of type ContentTagKnowledge is null due to parsing error or type casting error.");
            }

            // Verify the stream object header related requirements.
            this.ExpectStreamObjectHeaderStart(instance.StreamObjectHeaderStart, instance.GetType(), site);

            // Capture requirement MS-FSSHTTPB_R381, if stream object start type is StreamObjectHeaderStart16bit. 
            site.CaptureRequirementIfAreEqual<Type>(
                     typeof(StreamObjectHeaderStart16bit),
                     instance.StreamObjectHeaderStart.GetType(),
                     "MS-FSSHTTPB",
                     381,
                     @"[In Content Tag Knowledge] Content Tag Start (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the content tag knowledge start.");

            // Directly capture requirement MS-FSSHTTPB_R382, if there are no parsing errors. 
            site.CaptureRequirement(
                     "MS-FSSHTTPB",
                     382,
                     @"[In Content Tag Knowledge] Content Tag Entry Array (variable): An array of content tag knowledge entries (section 2.2.1.13.5.1) that specifies the BLOB heap entries.");

            // Directly capture requirement MS-FSSHTTPB_R383, if there are no parsing errors. 
            site.CaptureRequirement(
                     "MS-FSSHTTPB",
                     383,
                     @"[In Content Tag Knowledge] Content Tag Knowledge End (1 byte): An 8-bit stream object header (section 2.2.1.5.3) that specifies the content tag knowledge end.");

            // Verify the stream object header end related requirements.
            this.ExpectStreamObjectHeaderEnd(instance.StreamObjectHeaderEnd, instance.GetType(), site);
            this.ExpectCompoundObject(instance.StreamObjectHeaderStart, site);
        }