More integration test reorganization

This commit is contained in:
Dominion
2023-04-22 10:31:09 -04:00
parent 5f27726e92
commit 86e103b86b
3 changed files with 10 additions and 10 deletions
@@ -1,7 +1,7 @@
using Tgstation.Server.Common;
using Tgstation.Server.Host.Core;
namespace Tgstation.Server.Tests
namespace Tgstation.Server.Tests.Live.Instance
{
sealed class ConcreteHttpClientFactory : IAbstractHttpClientFactory
{
@@ -10,7 +10,7 @@ using Tgstation.Server.Host.Components.Interop;
namespace Tgstation.Server.Tests
{
[TestClass]
public sealed class DMApiConstantsTests
public sealed class TestDMApiConstants
{
string[] definesFileLines;
@@ -21,13 +21,13 @@ namespace Tgstation.Server.Tests
}
[TestMethod]
public void TestDMApiConstants()
{
// we only test a few things because they are sourced by BYOND and we want to validate them
CheckLine("DMAPI5_BRIDGE_REQUEST_LIMIT", DMApiConstants.MaximumBridgeRequestLength);
CheckLine("DMAPI5_TOPIC_REQUEST_LIMIT", DMApiConstants.MaximumTopicRequestLength);
CheckLine("DMAPI5_TOPIC_RESPONSE_LIMIT", DMApiConstants.MaximumTopicResponseLength);
}
public void TestBridgeRequestLimit() => CheckLine("DMAPI5_BRIDGE_REQUEST_LIMIT", DMApiConstants.MaximumBridgeRequestLength);
[TestMethod]
public void TestTopicRequestLimit() => CheckLine("DMAPI5_TOPIC_REQUEST_LIMIT", DMApiConstants.MaximumTopicRequestLength);
[TestMethod]
public void TestTopicResponseLimit() => CheckLine("DMAPI5_TOPIC_RESPONSE_LIMIT", DMApiConstants.MaximumTopicResponseLength);
void CheckLine(string defineName, object expectedValue)
{
@@ -18,7 +18,7 @@ namespace Tgstation.Server.Tests
{
[TestClass]
[TestCategory("SkipWhenLiveUnitTesting")]
public sealed class VersionsTest
public sealed class TestVersions
{
XNamespace xmlNamespace;