using Xunit;
using Neta.Tray;

public class BackendProcessManagerTests
{
    [Fact]
    public void BuildBackendStartInfo_passes_tray_secret_and_no_browser()
    {
        var info = BackendProcessManager.BuildBackendStartInfo(
            @"C:\Program Files\Neta\backend.exe",
            "tray-secret-123"
        );

        Assert.Equal(@"C:\Program Files\Neta\backend.exe", info.FileName);
        Assert.Contains("--tray-secret", info.ArgumentList);
        Assert.Contains("tray-secret-123", info.ArgumentList);
        Assert.Contains("--no-browser", info.ArgumentList);
        Assert.True(info.UseShellExecute == false);
    }
}
