From 65f9a5fb3d0622d1d48a96201a3ee2c0e6b304fb Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Mon, 10 Aug 2020 20:17:18 +0200 Subject: [PATCH] Add total number of gases atmospherics test (#1639) --- .../Tests/Atmos/ConstantsTest.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs diff --git a/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs b/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs new file mode 100644 index 0000000000..eac4460b8c --- /dev/null +++ b/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs @@ -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)); + }); + } + } +}