Microsoft.Protocols.TestSuites.MS_SITESS.S02_ManageSubSite.VerifyErrorCodeOfCreateWeb C# (CSharp) Méthode

VerifyErrorCodeOfCreateWeb() public méthode

CreateWeb MUST return a SOAP fault with the specified error code 0x800700b7, 0x8102009f.
public VerifyErrorCodeOfCreateWeb ( string actualValue ) : void
actualValue string error code of the SOAP fault
Résultat void
        public void VerifyErrorCodeOfCreateWeb(string actualValue)
        {
            // If error code is 0x800700b7 or 0x8102009f, R281 can be captured.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R281, the actual value of error code is {0}", actualValue);

            // Verify MS-SITESS requirement: MS-SITESS_R281
            bool isVerifyR281 = actualValue.Equals("0x800700b7") || actualValue.Equals("0x8102009f");

            Site.CaptureRequirementIfIsTrue(
                isVerifyR281,
                281,
                @"[In CreateWeb] If any of the error conditions specified by the following table occur, this method [CreateWeb] MUST return a SOAP fault with the specified error code [0x800700b7, 0x8102009f].");
        }