Exemplo n.º 1
0
        public void VerifyProtectDialogIsShownAndCancelIt(_MailItem mailItem)
        {
            OutlookSecurity OutlookBarGroup = new OutlookSecurity();
            OutlookBarGroup.DismissSecurityDialog();
            Assert.IsTrue(m_windowEnumerator.BackgroundWaitForProtectDialog_PressEscapeKey(30000), "Could not schedule dialog handling for the test");
            mailItem.Send();
            Assert.IsTrue(WaitAMinuteWindowEnumeratorToFinish(), "Seem to have locked up somewhere");

            Assert.IsTrue(m_windowEnumerator.LastBackgroundActionCompletedOK(), "Did not use the dialog properly during the send");
            m_windowEnumerator.CollectWindowDetails();
            Assert.IsFalse(m_windowEnumerator.ProtectDialogIsShowing(), "The dialog should have gone now");
        }
Exemplo n.º 2
0
        public void VerifyMailIsSentWithoutProtectDialog(_MailItem mailItem)
        {
            OutlookSecurity OutlookBarGroup = new OutlookSecurity();
            OutlookBarGroup.DismissSecurityDialog();
            Assert.IsTrue(m_windowEnumerator.BackgroundWaitForProtectDialog_PressDefaultButton(15000), "Could not schedule dialog handling for the test");
            mailItem.Send();

            Assert.IsTrue(WaitAMinuteWindowEnumeratorToFinish(), "Seem to have locked up somewhere");

            Assert.IsFalse(m_windowEnumerator.LastBackgroundActionCompletedOK(), "We appear to be blocking a B9 e-mail");
            m_windowEnumerator.CollectWindowDetails();
            Assert.IsFalse(m_windowEnumerator.ProtectDialogIsShowing(), "The dialog should not be shown at all");
        }