mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +08:00
Get rid of unit test
This commit is contained in:
parent
7d64d6b7a9
commit
268d04ed3e
@ -25,7 +25,16 @@ public class WorldFixedObjectTest : TestBase
|
|||||||
|
|
||||||
// fixed root is created
|
// fixed root is created
|
||||||
Assert.That(fixedRoot, Is.Not.Null);
|
Assert.That(fixedRoot, Is.Not.Null);
|
||||||
Assert.That(fixedRoot.GetComponent<ParentConstraint>(), Is.Not.Null);
|
var avatarType = System.Type.GetType("VRC.SDKBase.VRC_AvatarDescriptor, VRCSDKBase");
|
||||||
|
bool isVrcAvatar = false;
|
||||||
|
if (avatarType != null)
|
||||||
|
{
|
||||||
|
isVrcAvatar = avatar.GetComponent(avatarType) != null;
|
||||||
|
}
|
||||||
|
Component constraint = isVrcAvatar ?
|
||||||
|
fixedRoot.GetComponent(System.Type.GetType("VRC.SDK3.Dynamics.Constraint.Components.VRCParentConstraint, VRC.SDK3.Dynamics.Constraint")) :
|
||||||
|
fixedRoot.GetComponent<ParentConstraint>();
|
||||||
|
Assert.That(constraint, Is.Not.Null);
|
||||||
|
|
||||||
// objects are moved to fixed root
|
// objects are moved to fixed root
|
||||||
Assert.That(movedFixedObject, Is.Not.Null);
|
Assert.That(movedFixedObject, Is.Not.Null);
|
||||||
@ -52,7 +61,16 @@ public class WorldFixedObjectTest : TestBase
|
|||||||
|
|
||||||
// fixed root is created
|
// fixed root is created
|
||||||
Assert.That(fixedRoot, Is.Not.Null);
|
Assert.That(fixedRoot, Is.Not.Null);
|
||||||
Assert.That(fixedRoot.GetComponent<ParentConstraint>(), Is.Not.Null);
|
var avatarType = System.Type.GetType("VRC.SDKBase.VRC_AvatarDescriptor, VRCSDKBase");
|
||||||
|
bool isVrcAvatar = false;
|
||||||
|
if (avatarType != null)
|
||||||
|
{
|
||||||
|
isVrcAvatar = avatar.GetComponent(avatarType) != null;
|
||||||
|
}
|
||||||
|
Component constraint = isVrcAvatar ?
|
||||||
|
fixedRoot.GetComponent(System.Type.GetType("VRC.SDK3.Dynamics.Constraint.Components.VRCParentConstraint, VRC.SDK3.Dynamics.Constraint")) :
|
||||||
|
fixedRoot.GetComponent<ParentConstraint>();
|
||||||
|
Assert.That(constraint, Is.Not.Null);
|
||||||
|
|
||||||
// objects are moved to fixed root
|
// objects are moved to fixed root
|
||||||
Assert.That(movedFixedObject, Is.Not.Null);
|
Assert.That(movedFixedObject, Is.Not.Null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user