Make Grabbingtest scene load independent from build settings
This commit is contained in:
parent
7496bc6e2a
commit
88ac83ea46
@ -9,17 +9,18 @@ using NUnit.Framework;
|
||||
namespace Passer.Humanoid {
|
||||
public class GrabbingTest {
|
||||
|
||||
public void Setup() {
|
||||
UnityEngine.SceneManagement.SceneManager.LoadScene("[Test]GrabbingHumanoid");
|
||||
[UnitySetUp]
|
||||
public IEnumerator Setup() {
|
||||
//UnityEngine.SceneManagement.SceneManager.LoadScene("[Test]GrabbingHumanoid");
|
||||
//UnityEngine.SceneManagement.SceneManager.LoadScene("Passer/Humanoid/Demo/Environments/ObjectTable_env", LoadSceneMode.Additive);
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
yield return new WaitForSeconds(0.1F);
|
||||
|
||||
}
|
||||
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabStaticObject() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
@ -63,9 +64,6 @@ namespace Passer.Humanoid {
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabStaticObjectHandle() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
@ -112,9 +110,6 @@ namespace Passer.Humanoid {
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabHeavyObjectHandle() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
@ -162,9 +157,6 @@ namespace Passer.Humanoid {
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabRigidbody() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
@ -213,9 +205,6 @@ namespace Passer.Humanoid {
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabRigidbodyHandle() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
@ -263,9 +252,6 @@ namespace Passer.Humanoid {
|
||||
[UnityTest]
|
||||
[Category("Grabbing")]
|
||||
public IEnumerator GrabKinematicRigidbodyWithPhysics() {
|
||||
Setup();
|
||||
yield return new WaitForSeconds(1);
|
||||
|
||||
HumanoidControl humanoid = Object.FindObjectOfType<HumanoidControl>();
|
||||
Assert.IsFalse(humanoid == null);
|
||||
|
||||
|
@ -10,7 +10,7 @@ namespace Passer.Humanoid {
|
||||
public class Sites_Test {
|
||||
[UnitySetUp]
|
||||
public IEnumerator Setup() {
|
||||
Scene x = UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
||||
yield return new WaitForSeconds(0.1F);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user