Akka.Streams.Tests.ActorMaterializerSpec.ActorMaterializer_should_properly_shut_down_actors_associated_with_it C# (CSharp) 메소드

ActorMaterializer_should_properly_shut_down_actors_associated_with_it() 개인적인 메소드

        public void ActorMaterializer_should_properly_shut_down_actors_associated_with_it()
        {
            var m = Sys.Materializer();
            var f = Source.Maybe<int>().RunAggregate(0, (x, y) => x + y, m);

            m.Shutdown();

            Action action = () => f.Wait(TimeSpan.FromSeconds(3));
            action.ShouldThrow<AbruptTerminationException>();
        }