public void PhoneParseLineTest()
 {
     Platforms_1.PhoneContact user = new Platforms_1.PhoneContact();
     user.ParseLine("Oleh:99999");
     Assert.AreEqual("Oleh", user.Name);
     Assert.AreEqual("99999", user.PhoneNumber);
 }
        public void PhoneToStringTest()
        {
            Platforms_1.PhoneContact user = new Platforms_1.PhoneContact();
            user.ParseLine("Oleh:99999");
            string expected = "Name: Oleh - \tPhone Number: \t99999";

            Assert.AreEqual(expected, user.ToString());
        }
        public void ContactComparertest()
        {
            Platforms_1.PhoneContact     user1   = new Platforms_1.PhoneContact("Oleh", "99999");
            Platforms_1.SkypeContact     user2   = new Platforms_1.SkypeContact("Oleh", "SkypeLogin1");
            Platforms_1.MailContact      user3   = new Platforms_1.MailContact("Helo", "*****@*****.**");
            Platforms_1.ContactsComparer compare = new Platforms_1.ContactsComparer();
            int result1 = compare.Compare(user1, user2);
            int result2 = compare.Compare(user2, user3);

            Assert.AreEqual(0, result1);
            Assert.AreEqual(1, result2);
        }
 public void PhoneContactConstructor3Test()
 {
     Platforms_1.PhoneContact user = new Platforms_1.PhoneContact("Oleh", "99999");
     Assert.AreEqual("Oleh", user.Name);
     Assert.AreEqual("99999", user.PhoneNumber);
 }
 public void PhoneContactConstructor2Test()
 {
     Platforms_1.PhoneContact user = new Platforms_1.PhoneContact();
     Assert.AreEqual("", user.Name);
     Assert.AreEqual("00000", user.PhoneNumber);
 }