Beispiel #1
0
        public void IsFormatOfEmailBad()
        {
            Contacts c         = new Contacts();
            string   e         = "testowymailagh.edu.pl";
            Doctor   d         = new Doctor("Testowy", "Doktor", e, "haslo1", "Zarzadzania");
            var      testClass = new AddingContact(c, e, d);

            bool actual = testClass.IsValidEmail(e);
        }
Beispiel #2
0
        public void IsFormatOfEmailOk()

        {
            bool     expected  = true;
            Contacts c         = new Contacts();
            string   e         = "*****@*****.**";
            Doctor   d         = new Doctor("Testowy", "Doktor", e, "haslo1", "Zarzadzania");
            var      testClass = new AddingContact(c, e, d);

            bool actual = testClass.IsValidEmail(e);

            Assert.AreEqual(expected, actual);
        }