diff --git a/src/Tgstation.Server.Host/Components/Events/EventScriptAttribute.cs b/src/Tgstation.Server.Host/Components/Events/EventScriptAttribute.cs
index 585954544b..ba93d34cf9 100644
--- a/src/Tgstation.Server.Host/Components/Events/EventScriptAttribute.cs
+++ b/src/Tgstation.Server.Host/Components/Events/EventScriptAttribute.cs
@@ -20,7 +20,7 @@ namespace Tgstation.Server.Host.Components.Events
/// The value of .
public EventScriptAttribute(params string[] scriptNames)
{
- ScriptNames = ScriptNames ?? throw new ArgumentNullException(nameof(scriptNames));
+ ScriptNames = scriptNames ?? throw new ArgumentNullException(nameof(scriptNames));
}
}
}
diff --git a/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventScriptAttribute.cs b/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventScriptAttribute.cs
index 4f9e450150..232f8767d6 100644
--- a/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventScriptAttribute.cs
+++ b/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventScriptAttribute.cs
@@ -1,5 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
+using System.Linq;
namespace Tgstation.Server.Host.Components.Events.Tests
@@ -14,8 +15,8 @@ namespace Tgstation.Server.Host.Components.Events.Tests
public void TestConstruction()
{
Assert.ThrowsException(() => new EventScriptAttribute(null));
- var test = new EventScriptAttribute("test");
- Assert.AreEqual("test", test.ScriptName);
+ var test = new EventScriptAttribute("test1", "test2");
+ Assert.IsTrue(test.ScriptNames.SequenceEqual(["test1", "test2"]));
}
}
}
diff --git a/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventType.cs b/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventType.cs
index 9c1a467160..fcd032f60d 100644
--- a/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventType.cs
+++ b/tests/Tgstation.Server.Host.Tests/Components/Events/TestEventType.cs
@@ -22,7 +22,8 @@ namespace Tgstation.Server.Host.Components.Events.Tests
Assert.AreEqual(1, list.Count, $"EventType: {eventType}");
var attribute = list.First();
- Assert.IsTrue(allScripts.Add(attribute.ScriptName), $"Non-unique script Name: {attribute.ScriptName}");
+ foreach (var scriptName in attribute.ScriptNames)
+ Assert.IsTrue(allScripts.Add(scriptName), $"Non-unique script Names: {scriptName}");
}
}
}