Akka.Streams.Tests.IO.FileSourceSpec.FileSource_should_onError_when_trying_to_read_from_file_which_does_not_exist C# (CSharp) Method

FileSource_should_onError_when_trying_to_read_from_file_which_does_not_exist() private method

        public void FileSource_should_onError_when_trying_to_read_from_file_which_does_not_exist()
        {
            this.AssertAllStagesStopped(() =>
            {
                var p = FileIO.FromFile(NotExistingFile()).RunWith(Sink.AsPublisher<ByteString>(false), _materializer);
                var c = this.CreateManualProbe<ByteString>();
                p.Subscribe(c);

                c.ExpectSubscription();
                c.ExpectError();
            }, _materializer);
        }