Add total number of gases atmospherics test (#1639)

This commit is contained in:
DrSmugleaf
2020-08-10 20:17:18 +02:00
committed by GitHub
parent 5e238a7ced
commit 65f9a5fb3d

View File

@@ -0,0 +1,25 @@
using System;
using System.Linq;
using Content.Shared.Atmos;
using NUnit.Framework;
namespace Content.IntegrationTests.Tests.Atmos
{
[TestFixture]
[TestOf(typeof(Atmospherics))]
public class ConstantsTest : ContentIntegrationTest
{
[Test]
public void TotalGasesTest()
{
var server = StartServerDummyTicker();
server.Post(() =>
{
Assert.That(Atmospherics.Gases.Count(), Is.EqualTo(Atmospherics.TotalNumberOfGases));
Assert.That(Enum.GetValues(typeof(Gas)).Length, Is.EqualTo(Atmospherics.TotalNumberOfGases));
});
}
}
}