mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-03 03:10:23 +01:00
d89461d19d
- Build API via annotations using HotChocolate. - Export to `artifacts` on build. - Repurpose REST API types where possible, but many have to be reimplemented. - Transfer controller and bridge controller will definitely have to stay forever. - Added `Tgstation.Server.Client.GraphQL` built from schema using StrawberryShake. - Added equivalent server information query. - Setup semver and u32 (de)serialization. - Begin transitioning to multi-client type live tests. - Add GraphQL route `/api/graphql` - Rename ServerClient likes to RestServerClient equivalent. - Major API/Client library version bumps.
18 lines
494 B
C#
18 lines
494 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.ThrowsException<ArgumentNullException>(() => new RestServerClientFactory(null));
|
|
new RestServerClientFactory(new ProductHeaderValue("Tgstation.Server.Client.Tests", GetType().Assembly.GetName().Version.ToString()));
|
|
}
|
|
}
|
|
}
|