using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace Tgstation.Server.Host.Components.Events.Tests { /// /// Tests for the . /// [TestClass] public sealed class TestEventScriptAttribute { [TestMethod] public void TestConstruction() { Assert.ThrowsException(() => new EventScriptAttribute(null)); var test = new EventScriptAttribute("test"); Assert.AreEqual("test", test.ScriptName); } } }