Data Size Object
Inheritance: StreamObject
        /// <summary>
        /// This method is used to verify the data size related requirements.
        /// </summary>
        /// <param name="instance">Specify the data size  instance.</param>
        /// <param name="site">Specify the ITestSite instance.</param>
        public void VerifyDataSizeObject(DataSizeObject instance, ITestSite site)
        {
            // If the instance is not null and there are no parsing errors, then the DataSizeObject related adapter requirements can be directly captured.
            if (null == instance)
            {
                site.Assert.Fail("The instance of type DataSizeObject is null due to parsing error or type casting error.");
            }

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

            this.ExpectSingleObject(instance.StreamObjectHeaderStart, site);
        }
Exemple #2
0
        /// <summary>
        /// This method is used to verify the data size related requirements.
        /// </summary>
        /// <param name="instance">Specify the data size  instance.</param>
        /// <param name="site">Specify the ITestSite instance.</param>
        public void VerifyDataSizeObject(DataSizeObject instance, ITestSite site)
        {
            // If the instance is not null and there are no parsing errors, then the DataSizeObject related adapter requirements can be directly captured.
            if (null == instance)
            {
                site.Assert.Fail("The instance of type DataSizeObject is null due to parsing error or type casting error.");
            }

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

            this.ExpectSingleObject(instance.StreamObjectHeaderStart, site);
        }