Microsoft.Protocols.TestSuites.MS_SITESS.S01_MigrateSite.VerifyExportWebErrorCode C# (CSharp) Méthode

VerifyExportWebErrorCode() public méthode

If ExportWeb failed, errorCode should be 4, 5, 6, 7, or 8. R57 can be captured.
public VerifyExportWebErrorCode ( int errorCodeValue ) : void
errorCodeValue int The error code returned by the server.
Résultat void
        public void VerifyExportWebErrorCode(int errorCodeValue)
        {
            // If expectedValue is returned as 4, 5, 6, 7 or 8, R57 can be captured.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R57, the value of error code is {0}", errorCodeValue);

            // Verify MS-SITESS requirement: MS-SITESS_R57
            bool isVerifyR57 = 4 == errorCodeValue || 5 == errorCodeValue || 6 == errorCodeValue || 7 == errorCodeValue || 8 == errorCodeValue;

            Site.CaptureRequirementIfIsTrue(
                isVerifyR57,
                57,
                @"[In ExportWeb] In cases of permission, space restrictions or other conditions that prevent the execution of the operation, an error code MUST be included in the response message as specified in section 3.1.4.2.2.2 [error code list: 4, 5, 6, 7, 8].");
        }