public void SkypeParseLineTest()
 {
     Platforms_1.SkypeContact user = new Platforms_1.SkypeContact();
     user.ParseLine("Oleh:SkypeLogin1");
     Assert.AreEqual("Oleh", user.Name);
     Assert.AreEqual("SkypeLogin1", user.SkypeName);
 }
        public void SkypeToStringTest()
        {
            Platforms_1.SkypeContact user = new Platforms_1.SkypeContact();
            user.ParseLine("Oleh:SkypeLogin1");
            string expected = "Name: Oleh - \tskype name: \tSkypeLogin1";

            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);
        }
 //SkypeContactTests
 public void SkypeContactConstructor1Test()
 {
     Platforms_1.SkypeContact user = new Platforms_1.SkypeContact("Oleh:SkypeLogin1");
     Assert.AreEqual("Oleh", user.Name);
     Assert.AreEqual("SkypeLogin1", user.SkypeName);
 }
 public void SkypeContactConstructor2Test()
 {
     Platforms_1.SkypeContact user = new Platforms_1.SkypeContact();
     Assert.AreEqual("", user.Name);
     Assert.AreEqual("", user.SkypeName);
 }