/// <summary> /// This method is used to test Content Tag Knowledge Entry 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 VerifyContentTagKnowledgeEntry(ContentTagKnowledgeEntry instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Content Tag Knowledge Entry related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type ContentTagKnowledgeEntry 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_R385, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual <Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 385, @"[In Content Tag Knowledge Entry] Content Tag Entry Start (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the start of a content tag entry."); // Directly capture requirement MS-FSSHTTPB_R386, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 386, @"[In Content Tag Knowledge Entry] BLOB Heap Extended GUID (variable): An extended GUID (section 2.2.1.7) that specifies the BLOB heap this content tag is for."); // Directly capture requirement MS-FSSHTTPB_R387, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 387, @"[In Content Tag Knowledge Entry] Clock Data (variable): A binary item (section 2.2.1.3) that specifies changes when the contents of the BLOB heap change on the server."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }
/// <summary> /// This method is used to test Content Tag Knowledge Entry 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 VerifyContentTagKnowledgeEntry(ContentTagKnowledgeEntry instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Content Tag Knowledge Entry related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type ContentTagKnowledgeEntry 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_R385, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual<Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 385, @"[In Content Tag Knowledge Entry] Content Tag Entry Start (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the start of a content tag entry."); // Directly capture requirement MS-FSSHTTPB_R386, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 386, @"[In Content Tag Knowledge Entry] BLOB Heap Extended GUID (variable): An extended GUID (section 2.2.1.7) that specifies the BLOB heap this content tag is for."); // Directly capture requirement MS-FSSHTTPB_R387, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 387, @"[In Content Tag Knowledge Entry] Clock Data (variable): A binary item (section 2.2.1.3) that specifies changes when the contents of the BLOB heap change on the server."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }