コード例 #1
0
        public void InputIsRegisteredAsDependency()
        {
            var input = 1.AsPipelineConstant();
            var sut   = new ThreadSafePipelineStage <int>(input);

            PipelineAssert.DependentOn(sut, input);
        }
コード例 #2
0
        public void InputValueIsPassedThrough(int value)
        {
            var input = value.AsPipelineConstant();
            var sut   = new ThreadSafePipelineStage <int>(input);

            PipelineAssert.Value(sut, value);
        }
コード例 #3
0
        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);
        }