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
1 changed files with 2 additions and 4 deletions

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