コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: SafeRS232Controller.cs プロジェクト: Spawek/valeo
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 {
     communicator = comm;
     RS232        = safeRS232Communicator;
 }
コード例 #3
0
ファイル: SafeRS232Controller.cs プロジェクト: Spawek/valeo
 //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator)
 {
     communicator = comm;
     RS232 = safeRS232Communicator;
 }
コード例 #4
0
ファイル: SafeRS232Controller.cs プロジェクト: rAum/auton_net
 public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now
 {
     communicator = comm;
     RS232 = safeRS232Communicator;
 }