Ejemplo n.º 1
0
 public void WorkPhoneNumberTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.WorkPhoneNumber, string.Empty, "Expected WorkPhoneNumber to initially be empty string");
     contactLabel.WorkPhoneNumber = "(02345) 1232455";
     Assert.AreEqual(contactLabel.WorkPhoneNumber, "(02345) 1232455", "WorkPhoneNumber property not set as expected");
 }
Ejemplo n.º 2
0
 public void MobilePhoneNumberTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.MobilePhoneNumber, string.Empty, "Expected MobilePhoneNumber to initially be empty string");
     contactLabel.MobilePhoneNumber = "(06678) 5787446";
     Assert.AreEqual(contactLabel.MobilePhoneNumber, "(06678) 5787446", "MobilePhoneNumber property not set as expected");
 }
Ejemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (ContactIcon != null)
            {
                ContactIcon.Dispose();
                ContactIcon = null;
            }

            if (ContactLabel != null)
            {
                ContactLabel.Dispose();
                ContactLabel = null;
            }

            if (IconView != null)
            {
                IconView.Dispose();
                IconView = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (ContactVerticalConstraint != null)
            {
                ContactVerticalConstraint.Dispose();
                ContactVerticalConstraint = null;
            }
        }
Ejemplo n.º 4
0
 public void EmailAddressTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.EmailAddress, string.Empty, "Expected EmailAddress to initially be empty string");
     contactLabel.EmailAddress = "*****@*****.**";
     Assert.AreEqual(contactLabel.EmailAddress, "*****@*****.**", "EmailAddress property not set as expected");
 }
Ejemplo n.º 5
0
 public void HomePhoneNumberTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.HomePhoneNumber, string.Empty, "Expected HomePhoneNumber to initially be empty string");
     contactLabel.HomePhoneNumber = "(01332) 5678900";
     Assert.AreEqual(contactLabel.HomePhoneNumber, "(01332) 5678900", "HomePhoneNumber property not set as expected");
 }
Ejemplo n.º 6
0
        public void HomePhoneLabelTextTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.HomePhoneLabelText, "Home", "Expected HomePhoneLabelText to initially be 'Home'");
            contactLabel.HomePhoneLabelText = "Home Tel:";
            Assert.AreEqual(contactLabel.HomePhoneLabelText, "Home Tel:", "HomePhoneLabelText property not set as expected");
        }
Ejemplo n.º 7
0
        public void EmailLabelTextTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.EmailLabelText, "Email", "Expected EmailLabelText to initially be 'email'");
            contactLabel.EmailLabelText = "primary email:";
            Assert.AreEqual(contactLabel.EmailLabelText, "primary email:", "EmailLabelText property not set as expected");
        }
Ejemplo n.º 8
0
        public void WorkPhoneLabelTextTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.WorkPhoneLabelText, "Work", "Expected WorkPhoneLabelText to initially be 'Work'");
            contactLabel.WorkPhoneLabelText = "Work Tel:";
            Assert.AreEqual(contactLabel.WorkPhoneLabelText, "Work Tel:", "WorkPhoneLabelText property not set as expected");
        }
Ejemplo n.º 9
0
        public void WorkPhoneNumberTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.WorkPhoneNumber, string.Empty, "Expected WorkPhoneNumber to initially be empty string");
            contactLabel.WorkPhoneNumber = "(02345) 1232455";
            Assert.AreEqual(contactLabel.WorkPhoneNumber, "(02345) 1232455", "WorkPhoneNumber property not set as expected");
        }
Ejemplo n.º 10
0
        public void HomePhoneNumberTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.HomePhoneNumber, string.Empty, "Expected HomePhoneNumber to initially be empty string");
            contactLabel.HomePhoneNumber = "(01332) 5678900";
            Assert.AreEqual(contactLabel.HomePhoneNumber, "(01332) 5678900", "HomePhoneNumber property not set as expected");
        }
Ejemplo n.º 11
0
        public void MobilePhoneNumberTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.MobilePhoneNumber, string.Empty, "Expected MobilePhoneNumber to initially be empty string");
            contactLabel.MobilePhoneNumber = "(06678) 5787446";
            Assert.AreEqual(contactLabel.MobilePhoneNumber, "(06678) 5787446", "MobilePhoneNumber property not set as expected");
        }
Ejemplo n.º 12
0
        public void EmailAddressTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.EmailAddress, string.Empty, "Expected EmailAddress to initially be empty string");
            contactLabel.EmailAddress = "*****@*****.**";
            Assert.AreEqual(contactLabel.EmailAddress, "*****@*****.**", "EmailAddress property not set as expected");
        }
Ejemplo n.º 13
0
        public void MobilePhoneLabelTextTest()
        {
            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual(contactLabel.MobilePhoneLabelText, "Mobile", "Expected MobilePhoneLabelText to initially be 'Mobile'");
            contactLabel.MobilePhoneLabelText = "Mobile Tel:";
            Assert.AreEqual(contactLabel.MobilePhoneLabelText, "Mobile Tel:", "MobilePhoneLabelText property not set as expected");
        }
Ejemplo n.º 14
0
        public void EmailAddressTest()
        {
            string testValue = "*****@*****.**";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>(string.Empty, contactLabel.EmailAddress, "Expected EmailAddress to initially be string.Empty");

            contactLabel.EmailAddress = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.EmailAddress, "EmailAddress property not set as expected");
        }
Ejemplo n.º 15
0
        public void EmailLabelTextTest()
        {
            string testValue = "e:";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>("Email", contactLabel.EmailLabelText, "Expected EmailLabelText to initially be 'Email'");

            contactLabel.EmailLabelText = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.EmailLabelText, "EmailLabelText property not set as expected");
        }
Ejemplo n.º 16
0
        public void HomePhoneNumberTest()
        {
            string testValue = "01253 2960523";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>(string.Empty, contactLabel.HomePhoneNumber, "Expected HomePhoneNumber to initially be string.Empty");

            contactLabel.HomePhoneNumber = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.HomePhoneNumber, "HomePhoneNumber property not set as expected");
        }
Ejemplo n.º 17
0
        public void WorkPhoneLabelTextTest()
        {
            string testValue = "travail:";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>("Work", contactLabel.WorkPhoneLabelText, "Expected WorkPhoneLabelText to initially be 'Work'");

            contactLabel.WorkPhoneLabelText = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.WorkPhoneLabelText, "WorkPhoneLabelText property not set as expected");
        }
Ejemplo n.º 18
0
        public void WorkPhoneNumberTest()
        {
            string testValue = "0207 946 0901";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>(string.Empty, contactLabel.WorkPhoneNumber, "Expected WorkPhoneNumber to initially be string.Empty");

            contactLabel.WorkPhoneNumber = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.WorkPhoneNumber, "WorkPhoneNumber property not set as expected");
        }
Ejemplo n.º 19
0
        public void MobilePhoneLabelTextTest()
        {
            string testValue = "mobile:";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>("Mobile", contactLabel.MobilePhoneLabelText, "Expected MobilePhoneLabelText to initially be 'Mobile'");

            contactLabel.MobilePhoneLabelText = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.MobilePhoneLabelText, "MobilePhoneLabelText property not set as expected");
        }
Ejemplo n.º 20
0
        public void HomePhoneLabelTextTest()
        {
            string testValue = "maison:";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>("Home", contactLabel.HomePhoneLabelText, "Expected HomePhoneLabelText to initially be 'Home'");

            contactLabel.HomePhoneLabelText = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.HomePhoneLabelText, "HomePhoneLabelText property not set as expected");
        }
Ejemplo n.º 21
0
        public void MobilePhoneNumberTest()
        {
            string testValue = "077 009 00949";

            ContactLabel contactLabel = new ContactLabel();

            Assert.AreEqual <string>(string.Empty, contactLabel.MobilePhoneNumber, "Expected MobilePhoneNumber to initially be string.Empty");

            contactLabel.MobilePhoneNumber = testValue;
            Assert.AreEqual <string>(testValue, contactLabel.MobilePhoneNumber, "MobilePhoneNumber property not set as expected");
        }
Ejemplo n.º 22
0
 public ContactPage ClickOnContact()
 {
     ContactLabel.Click();
     log.Info("Contact link clicked");
     return(new ContactPage());
 }
Ejemplo n.º 23
0
 public void WorkPhoneLabelTextTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.WorkPhoneLabelText, "Work", "Expected WorkPhoneLabelText to initially be 'Work'");
     contactLabel.WorkPhoneLabelText = "Work Tel:";
     Assert.AreEqual(contactLabel.WorkPhoneLabelText, "Work Tel:", "WorkPhoneLabelText property not set as expected");
 }
Ejemplo n.º 24
0
 public void MobilePhoneLabelTextTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.MobilePhoneLabelText, "Mobile", "Expected MobilePhoneLabelText to initially be 'Mobile'");
     contactLabel.MobilePhoneLabelText = "Mobile Tel:";
     Assert.AreEqual(contactLabel.MobilePhoneLabelText, "Mobile Tel:", "MobilePhoneLabelText property not set as expected");
 }
Ejemplo n.º 25
0
 public void EmailLabelTextTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.EmailLabelText, "Email", "Expected EmailLabelText to initially be 'email'");
     contactLabel.EmailLabelText = "primary email:";
     Assert.AreEqual(contactLabel.EmailLabelText, "primary email:", "EmailLabelText property not set as expected");
 }
Ejemplo n.º 26
0
 public void HomePhoneLabelTextTest()
 {
     ContactLabel contactLabel = new ContactLabel();
     Assert.AreEqual(contactLabel.HomePhoneLabelText, "Home", "Expected HomePhoneLabelText to initially be 'Home'");
     contactLabel.HomePhoneLabelText = "Home Tel:";
     Assert.AreEqual(contactLabel.HomePhoneLabelText, "Home Tel:", "HomePhoneLabelText property not set as expected");
 }