Пример #1
0
        public void AddingSameInputAgainDoesNotInvalidateStage()
        {
            var a    = 1.AsPipelineConstant();
            var sut  = new CollectingPipelineStage <int>("", new[] { a });
            var test = sut.AttachTestStage();

            sut.AddInputs(new[] { a });

            test.AssertInvalidations(0);
        }
Пример #2
0
        public void AddingInputInvalidatesStage()
        {
            var a    = 1.AsPipelineConstant();
            var sut  = new CollectingPipelineStage <int>("", new[] { a });
            var test = sut.AttachTestStage();

            sut.AddInputs(new[] { 2.AsPipelineConstant() });

            test.AssertInvalidations(1);
        }
Пример #3
0
        public void InvalidationOfAddedInputsInvalidatesStage()
        {
            var a   = PipelineTestHelper.Assignable(1);
            var b   = PipelineTestHelper.Assignable(2);
            var sut = new CollectingPipelineStage <int>("", new[] { a });

            sut.AddInputs(new[] { b });
            var test = sut.AttachTestStage();

            b.Invalidate();
            test.AssertInvalidations(1);
        }