public IEnumerator MovementCappedAtSpeed() { MapIndex startTilePos = new MapIndex(1, 1); m_combatUnit.SetCurrentTile(m_mapGrid.GetTile(startTilePos)); Assert.True(m_mapGrid.GetTile(startTilePos).transform.childCount == 1); int speed = m_combatUnit.GetSpeed(); m_combatUnit.SetMovementLeft(0); m_player.SelectUnit(startTilePos); m_player.SelectUnit(new MapIndex(1, 10)); int pathlenght = m_combatUnit.GetPath().Count; m_player.TurnStart(); m_player.TurnEnd(); Assert.True(pathlenght - speed == m_combatUnit.GetPath().Count); yield return(null); }