public void ParseOnePort() { var pc = PortCouple.Parse("1212"); Assert.AreEqual(1212, pc.First); Assert.IsFalse(pc.IsSecondPortPresent); }
public void PortCoupleOnePort() { var pc = new PortCouple(1212); Assert.AreEqual(1212, pc.First); Assert.IsFalse(pc.IsSecondPortPresent); }
public void ParseTwoPort() { var pc = PortCouple.Parse("1212-1215"); Assert.AreEqual(1212, pc.First); Assert.IsTrue(pc.IsSecondPortPresent); Assert.AreEqual(1215, pc.Second); }
public void PortCoupleTwoPort() { var pc = new PortCouple(1212, 1215); Assert.AreEqual(1212, pc.First); Assert.IsTrue(pc.IsSecondPortPresent); Assert.AreEqual(1215, pc.Second); }
public void ToStringTwoPort() { var pc = new PortCouple(1212, 1215); Assert.AreEqual("1212-1215", pc.ToString()); }
public void ToStringOnePort() { var pc = new PortCouple(1212); Assert.AreEqual("1212", pc.ToString()); }