XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEWarframe

【WinUI】基于Warframe游戏本体的公开服务器以及安装器

公开
关注 0 Fork 0 Star 0
UTF-8
using Xunit;

namespace XFEWarframe.Client.Tests;

public sealed class InstallationIdentityTests
{
    [Fact] public void InstallationIdentityIsOnlyAddedToTheGameLogin()
    {
        var id = new string('a', 32);
        Assert.Contains("&xfeClientId=" + id, ClientProtocol.Redirect("https://game.test/api/login.php", "https://127.0.0.1:8443", "2026.10.22.13.12/hash", installationId: id));
        Assert.DoesNotContain("xfeClientId", ClientProtocol.Redirect("https://game.test/cdn/worldState.php", "https://127.0.0.1:8443", "2026.10.22.13.12/hash", installationId: id));
        Assert.DoesNotContain("xfeClientId", ClientProtocol.Redirect("https://game.test/api/login.php", "https://127.0.0.1:8443", "2026.10.22.13.12/hash", installationId: "invalid&parameter=value"));
    }
}