Microsoft.Protocols.TestSuites.MS_OXORULE.S02_ProcessServerSideRulesOtherthanOOF.VerifyActionTypeOP_COPY C# (CSharp) Method

VerifyActionTypeOP_COPY() private method

Verify action type OP_COPY.
private VerifyActionTypeOP_COPY ( string mailSubject, RopQueryRowsResponse getNewFolderMailMessageContent, RopQueryRowsResponse getInboxMailMessageContent, RuleProperties ruleProperties ) : void
mailSubject string The subject of the new mail.
getNewFolderMailMessageContent Microsoft.Protocols.TestSuites.Common.RopQueryRowsResponse The mail message content gotten from the new folder.
getInboxMailMessageContent Microsoft.Protocols.TestSuites.Common.RopQueryRowsResponse The mail message content gotten from the Inbox folder.
ruleProperties RuleProperties The properties of the current rule.
return void
        private void VerifyActionTypeOP_COPY(string mailSubject, RopQueryRowsResponse getNewFolderMailMessageContent, RopQueryRowsResponse getInboxMailMessageContent, RuleProperties ruleProperties)
        {
            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXORULE_R250: the message count in newFolder is {0}, and in inboxFolder is {1}", getNewFolderMailMessageContent.RowCount, getInboxMailMessageContent.RowCount);

            // Verify MS-OXORULE requirement: MS-OXORULE_R250
            bool isVerifyR250 = mailSubject.Contains(ruleProperties.ConditionSubjectName) && getNewFolderMailMessageContent.RowCount == 1;

            Site.CaptureRequirementIfIsTrue(
                  isVerifyR250,
                  250,
                  @"[In ActionBlock Structure] The meaning of action type OP_COPY: Copies the message to a folder.");
        }
    }