Akka.Streams.Tests.Dsl.FlowCompileSpec.Flow_should_append_Sink C# (CSharp) Method

Flow_should_append_Sink() private method

private Flow_should_append_Sink ( ) : void
return void
        public void Flow_should_append_Sink()
        {
            var open = Flow.Create<int>().Select(x => x.ToString());
            var closedSink = Flow.Create<string>().Select(x => x.GetHashCode()).To(Sink.AsPublisher<int>(false));
            dynamic appended = open.To(closedSink);
            Action compiler = () => appended.Run(Materializer);
            compiler.ShouldThrow<RuntimeBinderException>();
            compiler = () => appended.To(Sink.First<int>());
            compiler.ShouldThrow<RuntimeBinderException>();
            IntSeq.To(appended).Run(Materializer);
        }