using SilverOS.Welcome.Core.Apply;
using Xunit;

public class ProcessRunnerTests
{
    [Fact]
    public async Task Runs_powershell_and_captures_output_and_exit()
    {
        var r = await new ProcessRunner().RunAsync(
            "powershell.exe", "-NoProfile -Command \"Write-Output hello; exit 3\"");
        Assert.Equal(3, r.ExitCode);
        Assert.Contains("hello", r.StdOut);
    }
}
