public void TestDedModem()
        {
            var dialModem = new DialModemController(new ZhongxingModem());
            Assert.IsFalse(dialModem.Connected);

            dialModem.Dial();
            Assert.IsTrue(dialModem.Connected);

            dialModem.Hangup();
            Assert.IsFalse(dialModem.Connected);
        }
Example #2
0
        public void TestDedModem()
        {
            var dialModem = new DialModemController(new ZhongxingModem());

            Assert.IsFalse(dialModem.Connected);

            dialModem.Dial();
            Assert.IsTrue(dialModem.Connected);

            dialModem.Hangup();
            Assert.IsFalse(dialModem.Connected);
        }