public void A_ActorRefSource_must_set_actor_name_equal_to_stage_name()
{
this.AssertAllStagesStopped(() =>
{
var s = TestSubscriber.CreateManualProbe<int>(this);
const string name = "SomeCustomName";
var actorRef = Source.ActorRef<int>(10, OverflowStrategy.Fail)
.WithAttributes(Attributes.CreateName(name))
.To(Sink.FromSubscriber(s))
.Run(Materializer);
actorRef.Path.ToString().Should().Contain(name);
actorRef.Tell(PoisonPill.Instance);
}, Materializer);
}
}