mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-17 19:12:52 +01:00
More integration test reorganization
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
+8
-8
@@ -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)
|
||||
{
|
||||
+1
-1
@@ -18,7 +18,7 @@ namespace Tgstation.Server.Tests
|
||||
{
|
||||
[TestClass]
|
||||
[TestCategory("SkipWhenLiveUnitTesting")]
|
||||
public sealed class VersionsTest
|
||||
public sealed class TestVersions
|
||||
{
|
||||
XNamespace xmlNamespace;
|
||||
|
||||
Reference in New Issue
Block a user