Inline IsValid

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 11:32:53 +01:00
parent 1b13e5e0ec
commit 2d130e31d6
8 changed files with 17 additions and 11 deletions

View File

@@ -98,7 +98,7 @@ namespace Content.IntegrationTests.Tests
server.Assert(() =>
{
Assert.That(mind.CurrentEntity.IsValid(), Is.True);
Assert.That(IoCManager.Resolve<IEntityManager>().EntityExists(mind.CurrentEntity.Uid), Is.True);
});
await server.WaitIdleAsync();
@@ -149,7 +149,7 @@ namespace Content.IntegrationTests.Tests
server.Assert(() =>
{
Assert.That(mind.CurrentEntity.IsValid(), Is.True);
Assert.That(IoCManager.Resolve<IEntityManager>().EntityExists(mind.CurrentEntity.Uid), Is.True);
Assert.That(mind.CurrentEntity, Is.Not.EqualTo(playerEnt));
});