mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-03-27 06:25:01 +00:00
18 lines
492 B
C#
18 lines
492 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
using System.Net.Http.Headers;
|
|
|
|
namespace Tgstation.Server.Client.Tests
|
|
{
|
|
[TestClass]
|
|
public sealed class TestServerClientFactory
|
|
{
|
|
[TestMethod]
|
|
public void TestConstruction()
|
|
{
|
|
Assert.ThrowsExactly<ArgumentNullException>(() => new RestServerClientFactory(null));
|
|
new RestServerClientFactory(new ProductHeaderValue("Tgstation.Server.Client.Tests", GetType().Assembly.GetName().Version.ToString()));
|
|
}
|
|
}
|
|
}
|