mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-25 15:18:47 +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
|
public class ComponentTests
|
||||||
{
|
{
|
||||||
[UnityTest]
|
[Test]
|
||||||
public IEnumerator GetComponentsInChildrenOnly_ShouldIgnoreParent()
|
public void GetComponentsInChildrenOnly_ShouldIgnoreParent()
|
||||||
{
|
{
|
||||||
var parent = new GameObject();
|
var parent = new GameObject();
|
||||||
var rigidbody = parent.AddComponent<Rigidbody>();
|
var rigidbody = parent.AddComponent<Rigidbody>();
|
||||||
@ -19,8 +19,6 @@ namespace X10D.Unity.Tests
|
|||||||
var child = new GameObject();
|
var child = new GameObject();
|
||||||
child.AddComponent<Rigidbody>();
|
child.AddComponent<Rigidbody>();
|
||||||
|
|
||||||
yield return null;
|
|
||||||
|
|
||||||
Rigidbody[] components = rigidbody.GetComponentsInChildrenOnly<Rigidbody>();
|
Rigidbody[] components = rigidbody.GetComponentsInChildrenOnly<Rigidbody>();
|
||||||
Assert.That(components, Has.Length.EqualTo(1));
|
Assert.That(components, Has.Length.EqualTo(1));
|
||||||
Assert.That(child, Is.EqualTo(components[0].gameObject));
|
Assert.That(child, Is.EqualTo(components[0].gameObject));
|
||||||
|
Loading…
Reference in New Issue
Block a user