public static void ClassInit(TestContext param)
        {
            fakeRS232ReadLock = new Object();

            testedRS232 = new SafeRS232Communicator(com0comPort1);
            testedRS232.Initialize();

            fakeRS232 = new SerialPort(com0comPort2, 9600, Parity.None, 8, StopBits.One);
            fakeRS232.ReadTimeout = READ_TIMEOUT_IN_MS;
            fakeRS232.WriteTimeout = WRITE_TIMEOUT_IN_MS;
            fakeRS232.Open();
        }
Exemple #2
0
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 {
     communicator = comm;
     RS232        = safeRS232Communicator;
 }
Exemple #3
0
 //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator)
 {
     communicator = comm;
     RS232 = safeRS232Communicator;
 }
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 {
     communicator = comm;
     RS232 = safeRS232Communicator;
 }