Files
unity-application/Assets/Courses/PlayModeTests/BasicTests.cs
2023-03-30 21:28:48 +00:00

28 lines
702 B
C#

using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
using UnityEngine.SceneManagement;
public class BasicTests
{
// A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use
// `yield return null;` to skip a frame.
[UnityTest]
public IEnumerator BasicTestsWithEnumeratorPasses()
{
SceneManager.LoadScene("CourseScreen");
// Use the Assert class to test conditions.
// Use yield to skip a frame.
yield return null;
// var courseObject = GameObject.findGameObjectWithTag("Course");
// Assert.IsNotNull(courseObject);
}
}