mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-04 19:49:02 +08:00
fix: remove mystery unit test assertions
This commit is contained in:
parent
2ffc7d69ec
commit
5862f6cf97
@ -13,7 +13,7 @@ namespace UnitTests.ReactiveComponent
|
||||
internal class ObjectToggleTests : TestBase
|
||||
{
|
||||
[Test]
|
||||
public void WhenObjectIsAlwaysOn_CorrectProxyParameterIsGenerated()
|
||||
public void WhenObjectIsAlwaysOn_CorrectObjectStateIsSelected()
|
||||
{
|
||||
var root = CreateRoot("root");
|
||||
var obj = CreateChild(root, "obj");
|
||||
@ -36,15 +36,6 @@ namespace UnitTests.ReactiveComponent
|
||||
};
|
||||
|
||||
AvatarProcessor.ProcessAvatar(root);
|
||||
|
||||
// TODO: Ideally we should start using play mode testing for these things...
|
||||
var fx = (AnimatorController)FindFxController(root).animatorController;
|
||||
var readableProp = fx.parameters.FirstOrDefault(
|
||||
p => p.name.StartsWith("__MA/ReadableProp/obj/UnityEngine.GameObject/m_IsActive")
|
||||
);
|
||||
|
||||
Assert.IsNotNull(readableProp);
|
||||
Assert.AreEqual(readableProp.defaultFloat, 0);
|
||||
|
||||
Assert.IsFalse(obj.activeSelf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user