Akka.TestKit.Tests.TestActorRefTests.TestActorRefSpec.TestActorRef_name_must_start_with_double_dollar_sign C# (CSharp) Method

TestActorRef_name_must_start_with_double_dollar_sign() private method

        public void TestActorRef_name_must_start_with_double_dollar_sign()
        {
            //Looking at the scala code, this might not be obvious that the name starts with $$
            //object TestActorRef (TestActorRef.scala) contain this code: 
            //    private[testkit] def randomName: String = {
            //      val l = number.getAndIncrement()
            //      "$" + akka.util.Helpers.base64(l)
            //    }
            //So it adds one $. The second is added by akka.util.Helpers.base64(l) which by default 
            //creates a StringBuilder and adds adds $. Hence, 2 $$
            var testActorRef = new TestActorRef<ReplyActor>(Sys, Props.Create<ReplyActor>());

            Assert.Equal(testActorRef.Path.Name.Substring(0, 2), "$$");
        }