Пример #1
0
        public void ParseOnePort()
        {
            var pc = PortCouple.Parse("1212");

            Assert.AreEqual(1212, pc.First);
            Assert.IsFalse(pc.IsSecondPortPresent);
        }
Пример #2
0
        public void PortCoupleOnePort()
        {
            var pc = new PortCouple(1212);

            Assert.AreEqual(1212, pc.First);
            Assert.IsFalse(pc.IsSecondPortPresent);
        }
Пример #3
0
        public void ParseTwoPort()
        {
            var pc = PortCouple.Parse("1212-1215");

            Assert.AreEqual(1212, pc.First);
            Assert.IsTrue(pc.IsSecondPortPresent);
            Assert.AreEqual(1215, pc.Second);
        }
Пример #4
0
        public void PortCoupleTwoPort()
        {
            var pc = new PortCouple(1212, 1215);

            Assert.AreEqual(1212, pc.First);
            Assert.IsTrue(pc.IsSecondPortPresent);
            Assert.AreEqual(1215, pc.Second);
        }
Пример #5
0
        public void ToStringTwoPort()
        {
            var pc = new PortCouple(1212, 1215);

            Assert.AreEqual("1212-1215", pc.ToString());
        }
Пример #6
0
        public void ToStringOnePort()
        {
            var pc = new PortCouple(1212);

            Assert.AreEqual("1212", pc.ToString());
        }