Class StateMachineTests
Basic tests for FixedSM in edit mode.
Namespace: nickmaltbie.StateMachineUnity.Tests.EditMode.Fixed
Assembly: cs.temp.dll.dll
Syntax
public class StateMachineTests : TestBase
Fields
demoStateMachine
Basic tests for FixedSM in edit mode.
Declaration
public DemoFixedStateMachine demoStateMachine
Field Value
Type | Description |
---|---|
DemoFixedStateMachine |
Methods
RebuildCache()
Basic tests for FixedSM in edit mode.
Declaration
public void RebuildCache()
SendAndVerifyEventSequence((IEvent, Type)[])
Send an event sequence to a state machine and verify the given transitions.
Declaration
public void SendAndVerifyEventSequence(params (IEvent, Type)[] transitions)
Parameters
Type | Name | Description |
---|---|---|
(T1 Item1, T2 Item2)<IEvent, Type>[] | transitions | Sequence of events and transitions to send to the state machine and expect changes. |
SetUp()
Basic tests for FixedSM in edit mode.
Declaration
public void SetUp()
VerifyEnterExitCount()
Basic tests for FixedSM in edit mode.
Declaration
public void VerifyEnterExitCount()
VerifyTransitionNoEvent()
Basic tests for FixedSM in edit mode.
Declaration
public void VerifyTransitionNoEvent()
VerifyTransitionsCycle()
Basic tests for FixedSM in edit mode.
Declaration
public void VerifyTransitionsCycle()
VerifyTransitionsDeadEnd()
Basic tests for FixedSM in edit mode.
Declaration
public void VerifyTransitionsDeadEnd()