mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-17 01:56:30 +01:00
23 lines
577 B
C#
23 lines
577 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
|
|
namespace Tgstation.Server.Host.Components.Events.Tests
|
|
{
|
|
/// <summary>
|
|
/// Tests for the <see cref="EventScriptAttribute"/> class.
|
|
/// </summary>
|
|
[TestClass]
|
|
public sealed class TestEventScriptAttribute
|
|
{
|
|
[TestMethod]
|
|
public void TestConstruction()
|
|
{
|
|
Assert.ThrowsExactly<ArgumentNullException>(() => new EventScriptAttribute(null));
|
|
var test = new EventScriptAttribute("test1", "test2");
|
|
Assert.IsTrue(test.ScriptNames.SequenceEqual(["test1", "test2"]));
|
|
}
|
|
}
|
|
}
|