Microsoft.Protocols.TestSuites.SharedAdapter.MsfsshttpdCapture.VerifySmallFinalChunk C# (CSharp) Method

VerifySmallFinalChunk() public static method

This method is used to verify the requirements related with zip chunk when the final chunk is less than 1MB.
public static VerifySmallFinalChunk ( ITestSite site ) : void
site ITestSite Specify the ITestSite instance.
return void
        public static void VerifySmallFinalChunk(ITestSite site)
        {
            // If runs here successfully, then indicating all the following requirements can be directly captured.
            site.CaptureRequirement(
                     "MS-FSSHTTPD",
                     8040,
                     @"[In Zip Files][Data file chunk structure] After the analysis of local file headers terminates, the remaining bytes in the file are represented by a final chunk.");

            // Verify MS-FSSHTTPD requirement: MS-FSSHTTPD_R8087
            site.CaptureRequirement(
                     "MS-FSSHTTPD",
                     8087,
                     @"[In Zip Files] If the total size, in bytes, of the final chunk is less than or equal to 1 megabyte, the signature for the final chunk has the structure that is shown in the following diagram.");

            // Verify MS-FSSHTTPD requirement: MS-FSSHTTPD_R8041
            site.CaptureRequirement(
                     "MS-FSSHTTPD",
                     8041,
                     @"[In Zip Files] Small Final Chunk Signature: A 20-byte sequence that specifies the SHA-1 hash code of the file bytes represented by the final chunk.");
        }