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()); }
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()); }
public FakeCounterFixture(DioCrossConnectFixture dio) { m_dio = dio; m_allocated = false; m_source = new FakeCounterSource(dio.GetOutput()); m_counter = new Counter(dio.GetInput()); }
public FakeCounterFixture(DioCrossConnectFixture dio) { m_dio = dio; m_allocated = false; m_source = new FakeCounterSource(dio.GetOutput()); m_counter = new Counter(dio.GetInput()); }
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()); }
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()); }
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); }
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); }
public static void TearDownAfterClass() { s_dio.Teardown(); s_dio = null; }
public DioCrossConnectTest(int input, int output) { s_dio?.Teardown(); s_dio = new DioCrossConnectFixture(input, output); }