Akka.TestKit.Tests.TestSchedulerTests.Advance_to_takes_us_to_correct_time C# (CSharp) Method

Advance_to_takes_us_to_correct_time() private method

private Advance_to_takes_us_to_correct_time ( ) : void
return void
        public void Advance_to_takes_us_to_correct_time()
        {
            _testReceiveActor.Tell(new ScheduleOnceMessage(TimeSpan.FromSeconds(1), 1));
            _testReceiveActor.Tell(new ScheduleOnceMessage(TimeSpan.FromSeconds(2), 2));
            _testReceiveActor.Tell(new ScheduleOnceMessage(TimeSpan.FromSeconds(3), 3));
            Scheduler.AdvanceTo(Scheduler.Now.AddSeconds(2));
            var firstId = ExpectMsg<ScheduleOnceMessage>().Id;
            var secondId = ExpectMsg<ScheduleOnceMessage>().Id;
            ExpectNoMsg(TimeSpan.FromMilliseconds(20));
            Assert.Equal(1, firstId);
            Assert.Equal(2, secondId);
        }