public void InputIsRegisteredAsDependency() { var input = 1.AsPipelineConstant(); var sut = new ThreadSafePipelineStage <int>(input); PipelineAssert.DependentOn(sut, input); }
public void InputValueIsPassedThrough(int value) { var input = value.AsPipelineConstant(); var sut = new ThreadSafePipelineStage <int>(input); PipelineAssert.Value(sut, value); }
public void OutputIsTakenFromTheSelectedInput(int selected, int[] inputValues, int expected) { var select = AssignablePipelineStage.Create("Select", selected); var inputs = CreateInputs(inputValues.Select(i => i.AsPipelineConstant()).ToArray()); var sut = new MultiplexingPipelineStage <int, int>("Name", select, inputs); PipelineAssert.Value(sut, expected); }