mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 04:27:19 +01:00
Fix build
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@
|
||||
var/connection_name //the name of the configured chat connection
|
||||
var/is_admin_channel //if the server operator has marked this channel for game admins only
|
||||
var/is_private_channel //if this is a private chat channel
|
||||
var/tag //user defined string associated with channel
|
||||
var/custom_tag //user defined string associated with channel
|
||||
|
||||
//represents a chat user
|
||||
/datum/tgs_chat_user
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
channel.connection_name = channel_json["connectionName"]
|
||||
channel.is_admin_channel = channel_json["isAdminChannel"]
|
||||
channel.is_private_channel = channel_json["isPrivateChannel"]
|
||||
channel.tag = channel_json["tag"]
|
||||
channel.custom_tag = channel_json["tag"]
|
||||
return channel
|
||||
|
||||
/*
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
namespace Tgstation.Server.Api.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Tests for <see cref="ApiHeaders"/>
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public sealed class TestApiHeaders
|
||||
{
|
||||
readonly ProductHeaderValue productHeaderValue = new ProductHeaderValue("Tgstation.Server.Api.Tests", "1.0.0");
|
||||
|
||||
[TestMethod]
|
||||
public void TestConstruction()
|
||||
{
|
||||
Assert.ThrowsException<ArgumentNullException>(() => new ApiHeaders(null, null));
|
||||
Assert.ThrowsException<ArgumentNullException>(() => new ApiHeaders(productHeaderValue, null));
|
||||
var headers = new ApiHeaders(productHeaderValue, String.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user