mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-18 19:43:02 +01:00
24 lines
575 B
C#
24 lines
575 B
C#
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));
|
|
}
|
|
}
|
|
}
|