Akka.Tests.Actor.HotSwapSpec.Must_be_able_to_revert_to_initial_state_on_restart C# (CSharp) Метод

Must_be_able_to_revert_to_initial_state_on_restart() приватный Метод

private Must_be_able_to_revert_to_initial_state_on_restart ( ) : void
Результат void
        public void Must_be_able_to_revert_to_initial_state_on_restart() {
            var a = Sys.ActorOf<RevertToInitialState>();

            a.Tell("state");
            ExpectMsg("0");

            a.Tell("swap");
            ExpectMsg("swapped");

            a.Tell("state");
            ExpectMsg("1");

            EventFilter.Exception<Exception>("Crash (expected)!").Expect(1, () => {
                a.Tell("crash");
            });

            a.Tell("state");
            ExpectMsg("0");

        }