/// <summary> /// This method is used to test Cell Knowledge Range 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 VerifyCellKnowledgeRange(CellKnowledgeRange instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Cell Knowledge Range related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type CellKnowledgeRange 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_R376, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual <Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 376, @"[In Cell Knowledge Range] Cell Knowledge Range (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the start of a cell knowledge range."); // Directly capture requirement MS-FSSHTTPB_R377, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 377, @"[In Cell Knowledge Range] GUID (16 bytes): A GUID that specifies the data element."); // Directly capture requirement MS-FSSHTTPB_R378, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 378, @"[In Cell Knowledge Range] From (variable): A compact unsigned 64-bit integer section 2.2.1.1() that specifies the starting sequence number."); // Directly capture requirement MS-FSSHTTPB_R558, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 558, @"[In Cell Knowledge Range] To (variable): A compact unsigned 64-bit integer that specifies the ending sequence number."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }
/// <summary> /// This method is used to test Cell Knowledge Range 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 VerifyCellKnowledgeRange(CellKnowledgeRange instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Cell Knowledge Range related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type CellKnowledgeRange 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_R376, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual<Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 376, @"[In Cell Knowledge Range] Cell Knowledge Range (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies the start of a cell knowledge range."); // Directly capture requirement MS-FSSHTTPB_R377, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 377, @"[In Cell Knowledge Range] GUID (16 bytes): A GUID that specifies the data element."); // Directly capture requirement MS-FSSHTTPB_R378, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 378, @"[In Cell Knowledge Range] From (variable): A compact unsigned 64-bit integer section 2.2.1.1() that specifies the starting sequence number."); // Directly capture requirement MS-FSSHTTPB_R558, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 558, @"[In Cell Knowledge Range] To (variable): A compact unsigned 64-bit integer that specifies the ending sequence number."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }