Last active
August 26, 2019 15:16
-
-
Save rkandas/a8a7f6691aeb080f589d63a061802f53 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
using System.Collections; | |
using NUnit.Framework; | |
using TDDForUnity; | |
using UnityEngine; | |
using UnityEngine.TestTools; | |
namespace Tests | |
{ | |
public class AssetSpawnerTest | |
{ | |
[UnityTest] | |
public IEnumerator Should_InstantiateObject_When_GivenStringHasNameAndPosition() | |
{ | |
AssetSpawner assetSpawner = new AssetSpawner(); | |
assetSpawner.createAGameObject(); | |
Assert.IsNotNull(GameObject.Find("CubeOne")); | |
yield return null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment