Integration test to test restartround.

This commit is contained in:
Pieter-Jan Briers
2020-07-17 11:25:11 +02:00
parent 11ad47303a
commit d6b772adcc
3 changed files with 43 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
using System.Threading.Tasks;
using Content.Server.Interfaces.GameTicking;
using NUnit.Framework;
using Robust.Shared.IoC;
namespace Content.IntegrationTests.Tests
{
[TestFixture]
public class RestartRoundTest : ContentIntegrationTest
{
[Test]
public async Task Test()
{
var (client, server) = await StartConnectedServerClientPair();
server.Post(() =>
{
IoCManager.Resolve<IGameTicker>().RestartRound();
});
await RunTicksSync(client, server, 10);
}
}
}