Ardena Day/Night Cycle unit test
unknown
csharp
3 years ago
638 B
1
Indexable
Never
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); } }