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()); }