Esempio n. 1
0
 public FakeCounterFixture(int input, int output)
 {
     m_dio       = new DioCrossConnectFixture(input, output);
     m_allocated = true;
     m_source    = new FakeCounterSource(m_dio.GetOutput());
     m_counter   = new Counter(m_dio.GetInput());
 }
Esempio n. 2
0
 public FakeCounterFixture(int input, int output)
 {
     m_dio = new DioCrossConnectFixture(input, output);
     m_allocated = true;
     m_source = new FakeCounterSource(m_dio.GetOutput());
     m_counter = new Counter(m_dio.GetInput());
 }
Esempio n. 3
0
 public FakeCounterFixture(DioCrossConnectFixture dio)
 {
     m_dio       = dio;
     m_allocated = false;
     m_source    = new FakeCounterSource(dio.GetOutput());
     m_counter   = new Counter(dio.GetInput());
 }
Esempio n. 4
0
 public FakeCounterFixture(DioCrossConnectFixture dio)
 {
     m_dio = dio;
     m_allocated = false;
     m_source = new FakeCounterSource(dio.GetOutput());
     m_counter = new Counter(dio.GetInput());
 }
Esempio n. 5
0
 public FakeEncoderFixture(DioCrossConnectFixture dio1, DioCrossConnectFixture dio2)
 {
     Assert.NotNull(dio1);
     Assert.NotNull(dio2);
     m_dio1 = dio1;
     m_dio2 = dio2;
     m_allocated = false;
     m_source = new FakeEncoderSource(dio1.GetOutput(), dio2.GetOutput());
     m_encoder = new Encoder(dio1.GetInput(), dio2.GetInput());
 }
Esempio n. 6
0
 public FakeEncoderFixture(DioCrossConnectFixture dio1, DioCrossConnectFixture dio2)
 {
     Assert.NotNull(dio1);
     Assert.NotNull(dio2);
     m_dio1      = dio1;
     m_dio2      = dio2;
     m_allocated = false;
     m_source    = new FakeEncoderSource(dio1.GetOutput(), dio2.GetOutput());
     m_encoder   = new Encoder(dio1.GetInput(), dio2.GetInput());
 }
Esempio n. 7
0
 public FakeEncoderFixture(int inputA, int outputA, int inputB, int outputB, EncodingType type)
 {
     Assert.AreNotEqual(outputA, outputB);
     Assert.AreNotEqual(outputA, inputA);
     Assert.AreNotEqual(outputA, inputB);
     Assert.AreNotEqual(outputB, inputA);
     Assert.AreNotEqual(outputB, inputB);
     Assert.AreNotEqual(inputA, inputB);
     m_dio1 = new DioCrossConnectFixture(inputA, outputA);
     m_dio2 = new DioCrossConnectFixture(inputB, outputB);
     m_allocated = true;
     m_sourcePort[0] = outputA;
     m_sourcePort[1] = outputB;
     m_encoderPort[0] = inputA;
     m_encoderPort[1] = inputB;
     m_source = new FakeEncoderSource(m_dio1.GetOutput(), m_dio2.GetOutput());
     m_encoder = new Encoder(m_dio1.GetInput(), m_dio2.GetInput(), false, type);
 }
Esempio n. 8
0
 public FakeEncoderFixture(int inputA, int outputA, int inputB, int outputB, EncodingType type)
 {
     Assert.AreNotEqual(outputA, outputB);
     Assert.AreNotEqual(outputA, inputA);
     Assert.AreNotEqual(outputA, inputB);
     Assert.AreNotEqual(outputB, inputA);
     Assert.AreNotEqual(outputB, inputB);
     Assert.AreNotEqual(inputA, inputB);
     m_dio1           = new DioCrossConnectFixture(inputA, outputA);
     m_dio2           = new DioCrossConnectFixture(inputB, outputB);
     m_allocated      = true;
     m_sourcePort[0]  = outputA;
     m_sourcePort[1]  = outputB;
     m_encoderPort[0] = inputA;
     m_encoderPort[1] = inputB;
     m_source         = new FakeEncoderSource(m_dio1.GetOutput(), m_dio2.GetOutput());
     m_encoder        = new Encoder(m_dio1.GetInput(), m_dio2.GetInput(), false, type);
 }
Esempio n. 9
0
 public static void TearDownAfterClass()
 {
     s_dio.Teardown();
     s_dio = null;
 }
Esempio n. 10
0
 public DioCrossConnectTest(int input, int output)
 {
     s_dio?.Teardown();
     s_dio = new DioCrossConnectFixture(input, output);
 }