1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-25 13:38:49 +00:00

refactor(test): remove lingering IEnumerator test

Remant from 0b5bb074c8
This commit is contained in:
Oliver Booth 2023-04-10 13:44:37 +01:00
parent a8ebe9c902
commit f4d6c9083b
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -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));