Fix 3000 errors

This commit is contained in:
DrSmugleaf
2021-12-05 18:09:01 +01:00
parent 2bfec7ec62
commit 2a3b7d809d
569 changed files with 2979 additions and 3280 deletions

View File

@@ -15,7 +15,7 @@ using Robust.Shared.Timing;
namespace Content.IntegrationTests.Tests
{
[TestFixture]
[TestOf(typeof(IEntity))]
[TestOf(typeof(EntityUid))]
public class EntityTest : ContentIntegrationTest
{
[Test]
@@ -89,7 +89,7 @@ namespace Content.IntegrationTests.Tests
testEntity = entityMan.SpawnEntity(prototype.ID, testLocation);
server.RunTicks(2);
Assert.That((!IoCManager.Resolve<IEntityManager>().EntityExists(testEntity) ? EntityLifeStage.Deleted : IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(testEntity).EntityLifeStage) >= EntityLifeStage.Initialized);
entityMan.DeleteEntity((EntityUid) testEntity);
entityMan.DeleteEntity(testEntity);
}, "Entity '{0}' threw an exception.",
prototype.ID);
}
@@ -194,7 +194,7 @@ namespace Content.IntegrationTests.Tests
server.RunTicks(2);
entityManager.DeleteEntity((EntityUid) entity);
entityManager.DeleteEntity(entity);
}
});
});
@@ -336,7 +336,7 @@ namespace Content.IntegrationTests.Tests
}
server.RunTicks(2);
entityManager.DeleteEntity((EntityUid) entity);
entityManager.DeleteEntity(entity);
}
});
});