mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Allow BYOND downloads to be configurable
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace Tgstation.Server.Host.Components.Engine.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public sealed class TestByondInstallerBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestUrlTemplateFormatting()
|
||||
{
|
||||
const string OSMarker = "TempleOS";
|
||||
|
||||
Assert.AreEqual(
|
||||
new Uri("https://example.com/$515.1111_Hello Worl$d.zip"),
|
||||
ByondInstallerBase.GetDownloadZipUrl(
|
||||
new Version(515, 1111),
|
||||
"https://example.com/$$${Major}.${Minor}_${TempleOS:Hello Worl$$d}.zip${Linux:Not this}${Or This}",
|
||||
OSMarker));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user