Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
4kills committed Jun 14, 2022
1 parent 6a4d9f3 commit 2629a29
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Tests/Editmode/MinionConstellationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
using System.Collections.Generic;
using NUnit.Framework;
using Robot;
using UnityEditor.SceneManagement;
using UnityEditor.SearchService;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;

public class MinionConstellationTest
{
[Test]
public void TestMinionConstellation()
{
EditorSceneManager.OpenScene("Assets/Scenes/Game.unity");

var manager = GameObject
.FindGameObjectsWithTag("WaveManager")[0]
.GetComponent<WaveManager>();
Expand Down
3 changes: 3 additions & 0 deletions Assets/Tests/Editmode/ParameterGrowthTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Runtime.CompilerServices;
using NUnit.Framework;
using Robot;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.TestTools;
using UnityEngine.UIElements;
Expand All @@ -14,6 +15,8 @@ public class ParameterGrowthTest
[Test]
public void TestParameterGrowth()
{
EditorSceneManager.OpenScene("Assets/Scenes/Game.unity");

float eta = 10e-4F;
float[] cooldowns = new float[3]{1F, 0.9950125F, 0.9900498F};
float[] durations = new float[3]{5F, 4.900993F, 4.803947F};
Expand Down
3 changes: 3 additions & 0 deletions Assets/Tests/Editmode/ReportDeathTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using NUnit.Framework;
using Robot;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.TestTools;

Expand All @@ -11,6 +12,8 @@ public class ReportDeathTest
[Test]
public void TestDeathAlreadyReported()
{
EditorSceneManager.OpenScene("Assets/Scenes/Game.unity");

Statics.Initialize();
var manager = GameObject
.FindGameObjectsWithTag("WaveManager")[0]
Expand Down
3 changes: 3 additions & 0 deletions Assets/Tests/Editmode/SpawnRobotTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections.Generic;
using NUnit.Framework;
using Robot;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.TestTools;

Expand All @@ -11,6 +12,8 @@ public class SpawnRobotTest
[Test]
public void TestSpawnRobot()
{
EditorSceneManager.OpenScene("Assets/Scenes/Game.unity");

var manager = GameObject
.FindGameObjectsWithTag("WaveManager")[0]
.GetComponent<WaveManager>();
Expand Down

0 comments on commit 2629a29

Please sign in to comment.