Akka.Streams.Tests.Dsl.FlowCompileSpec.Flow_should_append_Flow C# (CSharp) Метод

Flow_should_append_Flow() приватный Метод

private Flow_should_append_Flow ( ) : void
Результат void
        public void Flow_should_append_Flow()
        {
            var open1 = Flow.Create<int>().Select(x => x.ToString());
            var open2 = Flow.Create<string>().Select(x => x.GetHashCode());
            dynamic open3 = open1.Via(open2);
            Action compiler = () => open3.Run(Materializer);
            compiler.ShouldThrow<RuntimeBinderException>();

            dynamic closedSource = IntSeq.Via(open3);
            compiler = () => closedSource.Run(Materializer);
            compiler.ShouldThrow<RuntimeBinderException>();

            dynamic closedSink = open3.To(Sink.AsPublisher<int>(false));
            compiler = () => closedSink.Run(Materializer);
            compiler.ShouldThrow<RuntimeBinderException>();

            closedSource.To(Sink.AsPublisher<int>(false)).Run(Materializer);
            IntSeq.To(closedSink).Run(Materializer);
        }