Files
SilverMetal/windows/welcome/tests/SilverOS.Welcome.Tests/ProcessRunnerTests.cs
2026-06-09 02:18:52 +01:00

15 lines
395 B
C#

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);
}
}