public IEnumerator CheckResourceTileSetup() { m_tile.SetTileType(TileType.Land); GameObject resourcePrefab = Resources.Load <GameObject>("Prefabs/ResourceTile"); GameObject resourceObject = GameObject.Instantiate(resourcePrefab); ResourceTile resource = resourceObject.GetComponent <ResourceTile>(); resource.Setup(m_tile, ResourceType.Wheat); Assert.True(m_tile.transform.position == resource.transform.position); Assert.True(resource.transform.parent == m_tile.transform); Assert.True(resource.GetResourceType() == ResourceType.Wheat); Assert.True(m_tile.GetProduction() == 0); Assert.True(m_tile.GetFood() == 3); yield return(null); }