Fix errors with creating gas mixtures on class instantiation (#1916)

* Fix errors when gas mixtures are created on class instantiation

* Fix mistake
This commit is contained in:
DrSmugleaf
2020-08-25 16:53:59 +02:00
committed by GitHub
parent b0a18ebc5b
commit 34b2902641
4 changed files with 12 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ using System.Threading.Tasks;
using Content.Server.GameObjects.EntitySystems;
using Content.Shared.Atmos;
using NUnit.Framework;
using Robust.Shared.GameObjects.Systems;
namespace Content.IntegrationTests.Tests.Atmos
{
@@ -18,10 +19,10 @@ namespace Content.IntegrationTests.Tests.Atmos
await server.WaitIdleAsync();
var atmosSystem = server.ResolveDependency<AtmosphereSystem>();
server.Post(() =>
{
var atmosSystem = EntitySystem.Get<AtmosphereSystem>();
Assert.That(atmosSystem.Gases.Count(), Is.EqualTo(Atmospherics.TotalNumberOfGases));
Assert.That(Enum.GetValues(typeof(Gas)).Length, Is.EqualTo(Atmospherics.TotalNumberOfGases));