public void AfterAddTwoActions_NextActionIs_FirstAddedAction_Test() { Action action = new Think(); Action idleAction = new IdleAction(); Action wanderAction = new WanderAction(); action.AddAction(idleAction); action.AddAction(wanderAction); Assert.True(action.NextAction().Equals(idleAction)); }
public void AfterAddTwoActions_HasTwoInList_Test() { Action action = new Think(); Action idleAction = new IdleAction(); Action wanderAction = new WanderAction(); action.AddAction(idleAction); action.AddAction(wanderAction); Assert.Equal(2, action.ActionListCount()); }
public void RemoveAction_OnListWithTwoActions_CurrentActionIsFirstAddedAction_Test() { Action action = new Think(); Action idleAction = new IdleAction(); Action wanderAction = new WanderAction(); action.AddAction(idleAction); action.AddAction(wanderAction); action.RemoveAction(); Assert.True(action.CurrentAction().Equals(idleAction)); }
public void AfterAddAction_HasOneInList_Test() { Action action = new Think(); action.AddAction(new IdleAction()); Assert.Equal(1, action.ActionListCount()); }
public void AfterAddAction_HasAction_Test() { Action action = new Think(); Action idleAction = new IdleAction(); action.AddAction(idleAction); Assert.True(action.CurrentAction().Equals(idleAction)); }
public void RemoveAction_OnListWithOneAction_Test() { Action action = new Think(); Action idleAction = new IdleAction(); action.AddAction(idleAction); action.RemoveAction(); Assert.Equal(0, action.ActionListCount()); }