Пример #1
0
        public async Task TestGotoStateTransitionAfterSend()
        {
            var configuration = GetConfiguration();
            var test          = new MachineTestKit <M2>(configuration: configuration);
            await test.StartMachineAsync();

            test.AssertStateTransition("Init");

            await test.SendEventAsync(new Message());

            test.AssertStateTransition("Final");
        }
Пример #2
0
        public async Task TestGotoStateTransitionAfterRaise()
        {
            var configuration = GetConfiguration();
            var test          = new MachineTestKit <M3>(configuration: configuration);
            await test.StartMachineAsync();

            test.AssertStateTransition("Final");
        }