Skip to content

Instantly share code, notes, and snippets.

@rkandas
Last active August 26, 2019 15:16
Show Gist options
  • Save rkandas/a8a7f6691aeb080f589d63a061802f53 to your computer and use it in GitHub Desktop.
Save rkandas/a8a7f6691aeb080f589d63a061802f53 to your computer and use it in GitHub Desktop.
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