Ardena Day/Night Cycle unit test
unknown
csharp
4 years ago
638 B
7
Indexable
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.TestTools;
public class DayNightTest
{
[Test]
public void DayNightTestSimplePasses()
{
Quaternion currentSunRotation = DayNight.sunGO.transform.rotation;
WaitFor5Sec();
Quaternion newSunRotation = DayNight.sunGO.transform.rotation;
float _first = currentSunRotation.x;
float _last = newSunRotation.x;
Assert.Greater(_last, _first);
}
IEnumerator WaitFor5Sec()
{
yield return new WaitForSeconds(5);
}
}Editor is loading...