public void CanTransitionToExistingState()
    {
        var fooState = container.AddAspect <FooState> ();

        stateMachine.ChangeState <FooState> ();
        Assert.AreSame(stateMachine.currentState, fooState);
    }
Example #2
0
 public void TestSetup()
 {
     NotificationCenter.instance.Clean();
     game         = new Container();
     actionSystem = game.AddAspect <ActionSystem> ();
     testSystem   = game.AddAspect <TestSystem> ();
     testSystem.Setup();
 }
Example #3
0
        public void ChangingToExistingState_StateIsChanged()
        {
            var testState = container.AddAspect <TestState>();

            stateMachine.ChangeState <TestState>();

            Assert.AreSame(stateMachine.CurrentState, testState);
        }
Example #4
0
 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> ();
 }