mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
22 lines
511 B
C#
22 lines
511 B
C#
using Microsoft.Extensions.Logging;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using Moq;
|
|
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Tgstation.Server.Host.Watchdog.Tests
|
|
{
|
|
[TestClass]
|
|
public sealed class TestWatchdog
|
|
{
|
|
[TestMethod]
|
|
public void TestConstruction()
|
|
{
|
|
Assert.ThrowsException<ArgumentNullException>(() => new Watchdog(null));
|
|
var mockLogger = new LoggerFactory().CreateLogger<Watchdog>();
|
|
var wd = new Watchdog(mockLogger);
|
|
}
|
|
}
|
|
}
|