mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-25 10:58:48 +00:00
refactor(test): remove lingering IEnumerator test
Remant from 0b5bb074c8
This commit is contained in:
parent
a8ebe9c902
commit
f4d6c9083b
@ -10,8 +10,8 @@ namespace X10D.Unity.Tests
|
||||
{
|
||||
public class ComponentTests
|
||||
{
|
||||
[UnityTest]
|
||||
public IEnumerator GetComponentsInChildrenOnly_ShouldIgnoreParent()
|
||||
[Test]
|
||||
public void GetComponentsInChildrenOnly_ShouldIgnoreParent()
|
||||
{
|
||||
var parent = new GameObject();
|
||||
var rigidbody = parent.AddComponent<Rigidbody>();
|
||||
@ -19,8 +19,6 @@ namespace X10D.Unity.Tests
|
||||
var child = new GameObject();
|
||||
child.AddComponent<Rigidbody>();
|
||||
|
||||
yield return null;
|
||||
|
||||
Rigidbody[] components = rigidbody.GetComponentsInChildrenOnly<Rigidbody>();
|
||||
Assert.That(components, Has.Length.EqualTo(1));
|
||||
Assert.That(child, Is.EqualTo(components[0].gameObject));
|
||||
|
Loading…
Reference in New Issue
Block a user