using System.Diagnostics; using MeetingAssistant.Transcription; namespace MeetingAssistant.Tests; public sealed class ProcessCommandRunnerTests { [Fact] public void CreateStartInfoRunsCliProcessesWithoutVisibleWindows() { var startInfo = ProcessCommandRunner.CreateStartInfo( "docker", ["run", "--rm", "meeting-assistant-pyannote:local"], new Dictionary { ["HF_TOKEN"] = "token" }); Assert.False(startInfo.UseShellExecute); Assert.True(startInfo.CreateNoWindow); Assert.Equal(ProcessWindowStyle.Hidden, startInfo.WindowStyle); Assert.True(startInfo.RedirectStandardOutput); Assert.True(startInfo.RedirectStandardError); Assert.Equal("docker", startInfo.FileName); Assert.Equal(["run", "--rm", "meeting-assistant-pyannote:local"], startInfo.ArgumentList); Assert.Equal("token", startInfo.Environment["HF_TOKEN"]); } }