/// <summary> /// This method is used to test Waterline 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 VerifyWaterlineKnowledgeEntry(WaterlineKnowledgeEntry instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Waterline Knowledge Entry related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type WaterlineKnowledgeEntry 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_R575, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual <Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 575, @"[In Waterline Knowledge Entry] Waterline Knowledge Entry (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies a waterline knowledge entry."); // Directly capture requirement MS-FSSHTTPB_R576, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 576, @"[In Waterline Knowledge Entry] Cell Storage Extended GUID (variable): An extended GUID (section 2.2.1.7) that specifies the cell storage this entry specifies the waterline for."); // Directly capture requirement MS-FSSHTTPB_R577, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 577, @"[In Waterline Knowledge Entry] Waterline (variable): A compact unsigned 64-bit integer (section 2.2.1.1) that specifies a sequential serial number (section 2.2.1.9)."); // Directly capture requirement MS-FSSHTTPB_R379, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 379, @"[In Waterline Knowledge Entry] Reserved (variable): A compact unsigned 64-bit integer that specifies a reserved field that MUST have value of zero."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }
/// <summary> /// This method is used to test Waterline 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 VerifyWaterlineKnowledgeEntry(WaterlineKnowledgeEntry instance, ITestSite site) { // If the instance is not null and there are no parsing errors, then the Waterline Knowledge Entry related adapter requirements can be directly captured. if (null == instance) { site.Assert.Fail("The instance of type WaterlineKnowledgeEntry 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_R575, if stream object start type is StreamObjectHeaderStart16bit. site.CaptureRequirementIfAreEqual<Type>( typeof(StreamObjectHeaderStart16bit), instance.StreamObjectHeaderStart.GetType(), "MS-FSSHTTPB", 575, @"[In Waterline Knowledge Entry] Waterline Knowledge Entry (2 bytes): A 16-bit stream object header (section 2.2.1.5.1) that specifies a waterline knowledge entry."); // Directly capture requirement MS-FSSHTTPB_R576, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 576, @"[In Waterline Knowledge Entry] Cell Storage Extended GUID (variable): An extended GUID (section 2.2.1.7) that specifies the cell storage this entry specifies the waterline for."); // Directly capture requirement MS-FSSHTTPB_R577, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 577, @"[In Waterline Knowledge Entry] Waterline (variable): A compact unsigned 64-bit integer (section 2.2.1.1) that specifies a sequential serial number (section 2.2.1.9)."); // Directly capture requirement MS-FSSHTTPB_R379, if there are no parsing errors. site.CaptureRequirement( "MS-FSSHTTPB", 379, @"[In Waterline Knowledge Entry] Reserved (variable): A compact unsigned 64-bit integer that specifies a reserved field that MUST have value of zero."); // Verify the stream object header end related requirements. this.ExpectSingleObject(instance.StreamObjectHeaderStart, site); }