Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
genaray committed Jul 22, 2024
1 parent c130f9e commit abf9b85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Arch.Tests/EventTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ public void AddSingleFromArchetype()
world.SubscribeComponentAdded((in Entity entity, ref EventTestComponentOne _) => _asserter.CompOneAdded.Add(entity));
world.SubscribeComponentAdded((in Entity entity, ref EventTestComponentTwo _) => _asserter.CompTwoAdded.Add(entity));

Span<ComponentType> archetype = stackalloc ComponentType[] { typeof(EventTestComponentOne) };

// Create entity to check if created and add event were fired
var entity = world.Create(archetype);
var entity = world.Create<EventTestComponentOne>();

_asserter.AssertEvents(compOneAdded: 1);
That(_asserter.CompOneAdded, Does.Contain(entity));
Expand Down

0 comments on commit abf9b85

Please sign in to comment.