Add a simple client test

This commit is contained in:
Cyberboss
2018-08-31 13:23:18 -04:00
parent abea73deb5
commit 2efb77917e
@@ -0,0 +1,17 @@
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.ThrowsException<ArgumentNullException>(() => new ServerClientFactory(null));
new ServerClientFactory(new ProductHeaderValue("Tgstation.Server.Client.Tests", GetType().Assembly.GetName().Version.ToString()));
}
}
}