Last active
August 26, 2019 15:15
-
-
Save rkandas/f059d671f024fb80e71f17e22e6816e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AssetSpawnerTest | |
{ | |
[UnityTest] | |
public IEnumerator Should_InstantiateObject_When_GivenStringHasNameAndPosition() | |
{ | |
//given | |
String csvString = "CubeX,2,3,3"; | |
String expectedName = "CubeX"; | |
//when | |
AssetSpawner assetSpawner = new AssetSpawner(); | |
assetSpawner.createAGameObjectFromString(csvString); | |
//then | |
Assert.IsNotNull(GameObject.Find(expectedName)); | |
yield return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment