コード例 #1
0
        public void ParseOnePort()
        {
            var pc = PortCouple.Parse("1212");

            Assert.AreEqual(1212, pc.First);
            Assert.IsFalse(pc.IsSecondPortPresent);
        }
コード例 #2
0
        public void ParseTwoPort()
        {
            var pc = PortCouple.Parse("1212-1215");

            Assert.AreEqual(1212, pc.First);
            Assert.IsTrue(pc.IsSecondPortPresent);
            Assert.AreEqual(1215, pc.Second);
        }