public void CanTransitionToExistingState() { var fooState = container.AddAspect <FooState> (); stateMachine.ChangeState <FooState> (); Assert.AreSame(stateMachine.currentState, fooState); }
public void TestSetup() { NotificationCenter.instance.Clean(); game = new Container(); actionSystem = game.AddAspect <ActionSystem> (); testSystem = game.AddAspect <TestSystem> (); testSystem.Setup(); }
public void ChangingToExistingState_StateIsChanged() { var testState = container.AddAspect <TestState>(); stateMachine.ChangeState <TestState>(); Assert.AreSame(stateMachine.CurrentState, testState); }
public void TestSetup() { game = new Container(); actionSystem = game.AddAspect <ActionSystem> (); dataSystem = game.AddAspect <DataSystem> (); matchSystem = game.AddAspect <MatchSystem> (); testSkipSystem = game.AddAspect <TestSkipSystem> (); game.Awake(); }
public void TestSetup() { container = new Container(); stateMachine = container.AddAspect <StateMachine> (); }