コード例 #1
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());
 }
コード例 #2
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);
 }