public void SendMessageWithAttachedFile_sentCorrectFileExtension()
        {
            themeOfMessage = "Message with attached file";
            messageBody    = "sent a message to the method being tested SentMessageWithAttachedFile()";
            string fileName = "Account.txt";

            inboxGmailPage.OpenNewMessagePopUp();

            messagePopUp.SendMessageWithAttachedFile(this.firstMail, themeOfMessage, messageBody, fileName);

            this.foundMessage = inboxGmailPage.GetMessageByFileName(fileName);
            Assert.IsTrue(foundMessage.Displayed);
        }
        public void SendMessageWithAttachedFile_sentCorrectFileExtension()
        {
            this.themeOfMessage = "Message with attached file";
            this.messageBody    = "sent a message to the method being tested SentMessageWithAttachedFile()";
            this.fileName       = "Account.txt";
            this.pathFileName   = controller.GetFilePath(fileName);

            MessagePopUp messagePopUp = inboxGmailPage.OpenNewMessagePopUp();

            messagePopUp.SendMessageWithAttachedFile(this.firstMail, this.themeOfMessage, this.messageBody, pathFileName);

            Assert.IsTrue(inboxGmailPage.GetMessageByFileName(fileName).Displayed);
        }