Exemplo n.º 1
0
        public async void should_correctly_error_if_trying_to_make_object_fork_from_data()
        {
            var dummyPipeline = new PipelineBuilder()
                                .StartFrom(new InMemoryEndpoint())
                                .Build();

            Assert.Throws <ArgumentException>(() => new PipelineBuilder().ForkObjectFrom(dummyPipeline));
        }
Exemplo n.º 2
0
        public async void should_correctly_error_if_trying_to_make_data_fork_from_object()
        {
            var dummyPipeline = new PipelineBuilder()
                                .StartFromInput()
                                .ThenInvoke(x => Task.FromResult((object)"hello"))
                                .Build();

            Assert.Throws <ArgumentException>(() => new PipelineBuilder().ForkDataFrom(dummyPipeline));
        }