public void Can_sign()
        {
            var msg = new MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            //Console.WriteLine(msg.GetText());

            Assert.IsTrue(msg.CanSign());

        }
        public void Cannot_sign_multiple_alt_views()
        {
            var msg = new System.Net.Mail.MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            var htmlView = AlternateView.CreateAlternateViewFromString("<p>some html</p>", new ContentType(@"text/html"));

            msg.AlternateViews.Add(htmlView);

            Assert.IsFalse(msg.CanSign());
        }
        public void Cannot_sign_attachment()
        {
            var msg = new System.Net.Mail.MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            var path       = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\MailMessage\Attachment.htm";
            var attachment = new Attachment(path, new ContentType(@"text/html"));

            msg.Attachments.Add(attachment);

            Assert.IsFalse(msg.CanSign());
        }
        public void Cannot_sign_attachment()
        {
            var msg = new MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            var path = Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location) + @"\MailMessage\Attachment.htm";
            var attachment = new Attachment(path, new ContentType(@"text/html"));
            msg.Attachments.Add(attachment);

            //Console.WriteLine(msg.GetText());
            Assert.IsFalse(msg.CanSign());

        }
        public void Cannot_sign_multiple_alt_views()
        {
            var msg = new MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            var htmlView = AlternateView.CreateAlternateViewFromString("<p>some html</p>", new ContentType(@"text/html"));
            msg.AlternateViews.Add(htmlView);
            
            //Console.WriteLine(msg.GetText());

            Assert.IsFalse(msg.CanSign());

        }
        public void Can_sign()
        {
            var msg = new System.Net.Mail.MailMessage("*****@*****.**", "*****@*****.**", "subject", "body");

            Assert.IsTrue(msg.CanSign());
        }