Microsoft.Protocols.TestSuites.MS_OXNSPI.S05_NegativeBehavior.VerifyWhetherpStatIsModifiedForNspiUpdateStat C# (CSharp) Method

VerifyWhetherpStatIsModifiedForNspiUpdateStat() private method

Check whether STAT is modified.
private VerifyWhetherpStatIsModifiedForNspiUpdateStat ( STAT statSave, STAT stat ) : void
statSave STAT The STAT parameter before calling NspiUpdateStat.
stat STAT The STAT parameter after calling NspiUpdateStat.
return void
        private void VerifyWhetherpStatIsModifiedForNspiUpdateStat(STAT statSave, STAT stat)
        {
            // Add the debug information
            Site.Log.Add(
                LogEntryKind.Debug,
                "Verify MS-OXNSPI_R784: the SortType of output stat is {0}, the ContainerID of output stat is {1}, the CurrentRec of output stat is {2}, the Delta of output stat is {3}, the NumPos of output stat is {4}, the TotalRecs of output stat is {5}, the CodePage of output stat is {6}, the TemplateLocale of output stat is {7}, the SortLocale of output stat is {8};" +
                "the SortType of statSave is {9}, the ContainerID of statSave is {10}, the CurrentRec of statSave is {11}, the Delta of statSave is {12}, the NumPos of statSave is {13}, the TotalRecs of statSave is {13}, the CodePage of statSave is {14}, the TemplateLocale of statSave is {15}, the SortLocale of statSave is {16}",
                stat.SortType,
                stat.ContainerID,
                stat.CurrentRec,
                stat.Delta,
                stat.NumPos,
                stat.TotalRecs,
                stat.CodePage,
                stat.TemplateLocale,
                stat.SortLocale,
                statSave.SortType,
                statSave.ContainerID,
                statSave.CurrentRec,
                statSave.Delta,
                statSave.NumPos,
                statSave.TotalRecs,
                statSave.CodePage,
                statSave.TemplateLocale,
                statSave.SortLocale);

            // Verify MS-OXNSPI requirement: MS-OXNSPI_R784
            bool isVerifyR784 = (stat.CodePage == statSave.CodePage) && (stat.ContainerID == statSave.ContainerID)
                && (stat.CurrentRec == statSave.CurrentRec) && (stat.Delta == statSave.Delta)
                && (stat.NumPos == statSave.NumPos) && (stat.SortLocale == statSave.SortLocale)
                && (stat.SortType == statSave.SortType) && (stat.TemplateLocale == statSave.TemplateLocale);

            // The Open Specification defines many error codes other than "Success", but in this operation it only describes when the server will return "InvalidBookmark" and "Not Found".
            // If isVerifyR784 is true and STAT is equal to statSave, the server does not modify STAT.
            Site.CaptureRequirementIfIsTrue(
                isVerifyR784,
                784,
                @"[In NspiUpdateStat] [Server Processing Rules: Upon receiving message NspiUpdateStat, the server MUST process the data from the message subject to the following constraints:] [Constraint 2] If the server returns any return value other than ""Success"", the server MUST NOT modify the output parameter pStat.");
        }
        #endregion
S05_NegativeBehavior