Class StateMachineTestUtils
Namespace: nickmaltbie.StateMachineUnity.Tests.EditMode.Fixed
Assembly: cs.temp.dll.dll
Syntax
public static class StateMachineTestUtils
Methods
SendAndVerifyEventSequence(IStateMachine<Type>, IEnumerable<(IEvent, Type)>, Boolean)
Send an event sequence to a state machine and verify the given transitions.
Declaration
public static void SendAndVerifyEventSequence(IStateMachine<Type> sm, IEnumerable<(IEvent, Type)> transitions, bool log = true)
Parameters
Type | Name | Description |
---|---|---|
IStateMachine<Type> | sm | |
IEnumerable<(T1 Item1, T2 Item2)<IEvent, Type>> | transitions | Sequence of events and transitions to send to the state machine and expect changes. |
Boolean | log |
SendAndVerifyEventSequence(IStateMachine<Type>, (IEvent, Type)[])
Send an event sequence to a state machine and verify the given transitions.
Declaration
public static void SendAndVerifyEventSequence(IStateMachine<Type> sm, params (IEvent, Type)[] transitions)
Parameters
Type | Name | Description |
---|---|---|
IStateMachine<Type> | sm | |
(T1 Item1, T2 Item2)<IEvent, Type>[] | transitions | Sequence of events and transitions to send to the state machine and expect changes. |