public void SetUp()
 {
     v = new UnixModemConfigurator();
     h = new HayesModem();
     z = new ZoomModem();
     e = new ErnieModem();
 }
示例#2
0
 public ModemVisitorTest()
 {
     _visitor = new UnixModemConfigurator();
     _hayes   = new HayesModem();
     _zoom    = new ZoomModem();
     _ernie   = new ErnieModem();
 }
 public void SetUp()
 {
     this.v = new UnixModemConfigurator();
     this.h = new HayesModem();
     this.z = new ZoomModem();
     this.e = new ErnieModem();
 }
示例#4
0
        public void Init(BusManager bmgr, IHostService host, HayesModem modem)
        {
            m_bmgr  = bmgr;
            m_modem = modem;

            BindComPorts();
        }
        public void LoudDialModem()
        {
            Modem m = new HayesModem();
            Modem d = new LoudDialModem(m);

            Assert.AreEqual(null, d.PhoneNumber);
            Assert.AreEqual(0, d.SpeakerVolume);
            d.Dial("5551212");
            Assert.AreEqual("5551212", d.PhoneNumber);
            Assert.AreEqual(10, d.SpeakerVolume);
        }
        public void CreateHayes()
        {
            Modem m = new HayesModem();

            Assert.AreEqual(null, m.PhoneNumber);
            m.Dial("5551212");
            Assert.AreEqual("5551212", m.PhoneNumber);
            Assert.AreEqual(0, m.SpeakerVolume);
            m.SpeakerVolume = 10;
            Assert.AreEqual(10, m.SpeakerVolume);
        }
示例#7
0
 public void Visit(HayesModem hayesModem)
 {
     hayesModem.ConfigurationString = "&s1=4&D=3";
 }
示例#8
0
 public void Visit(HayesModem modem)
 {
     modem.configurationString = "&s1=4&D=3";
 }