1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +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 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));