jump-game/Jump Game/Library/PackageCache/com.unity.test-framework@1.0.13/UnityEngine.TestRunner/TestRunner/PlaymodeTestsControllerSettings.cs
2020-01-29 10:05:38 +02:00

29 lines
812 B
C#

using System;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools.TestRunner.GUI;
namespace UnityEngine.TestTools.TestRunner
{
[Serializable]
internal class PlaymodeTestsControllerSettings
{
[SerializeField]
public TestRunnerFilter filter;
public bool sceneBased;
public string originalScene;
public string bootstrapScene;
public static PlaymodeTestsControllerSettings CreateRunnerSettings(TestRunnerFilter filter)
{
var settings = new PlaymodeTestsControllerSettings
{
filter = filter,
sceneBased = false,
originalScene = SceneManager.GetActiveScene().path,
bootstrapScene = null
};
return settings;
}
}
}