Move the watchdog verify

This commit is contained in:
Cyberboss
2018-10-23 15:15:19 -04:00
parent a7aeebc5d0
commit 2314d3e15c
@@ -43,12 +43,12 @@ namespace Tgstation.Server.Host.Service.Tests
using (var service = new ServerService(mockWatchdogFactory.Object, mockLoggerFactory, default))
{
onStart.Invoke(service, new object[] { args });
mockWatchdog.VerifyAll();
Assert.IsFalse(cancellationToken.IsCancellationRequested);
onStop.Invoke(service, Array.Empty<object>());
Assert.IsTrue(cancellationToken.IsCancellationRequested);
mockWatchdog.VerifyAll();
}
mockWatchdogFactory.VerifyAll();