2020-08-10 20:17:18 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Linq;
|
2020-08-25 16:14:26 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2021-06-19 13:25:05 +02:00
|
|
|
|
using Content.Server.Atmos.EntitySystems;
|
2020-08-10 20:17:18 +02:00
|
|
|
|
using Content.Shared.Atmos;
|
|
|
|
|
|
using NUnit.Framework;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-08-10 20:17:18 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.IntegrationTests.Tests.Atmos
|
|
|
|
|
|
{
|
|
|
|
|
|
[TestFixture]
|
|
|
|
|
|
[TestOf(typeof(Atmospherics))]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class ConstantsTest : ContentIntegrationTest
|
2020-08-10 20:17:18 +02:00
|
|
|
|
{
|
|
|
|
|
|
[Test]
|
2020-08-25 16:14:26 +02:00
|
|
|
|
public async Task TotalGasesTest()
|
2020-08-10 20:17:18 +02:00
|
|
|
|
{
|
2021-11-06 11:49:59 +01:00
|
|
|
|
var server = StartServer();
|
2020-08-10 20:17:18 +02:00
|
|
|
|
|
2020-08-25 16:14:26 +02:00
|
|
|
|
await server.WaitIdleAsync();
|
|
|
|
|
|
|
2021-06-21 10:50:21 +02:00
|
|
|
|
await server.WaitPost(() =>
|
2020-08-10 20:17:18 +02:00
|
|
|
|
{
|
2020-08-25 16:53:59 +02:00
|
|
|
|
var atmosSystem = EntitySystem.Get<AtmosphereSystem>();
|
|
|
|
|
|
|
2020-08-25 16:14:26 +02:00
|
|
|
|
Assert.That(atmosSystem.Gases.Count(), Is.EqualTo(Atmospherics.TotalNumberOfGases));
|
2020-08-10 20:17:18 +02:00
|
|
|
|
|
|
|
|
|
|
Assert.That(Enum.GetValues(typeof(Gas)).Length, Is.EqualTo(Atmospherics.TotalNumberOfGases));
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|