public override Process CreateProcess(string path, string args, bool useShellExecute, string workingDirectory)
        {
            // If we're asked to start a WSL executable we must launch via the wsl.exe command tool
            if (!useShellExecute && WslUtils.IsWslPath(path))
            {
                string wslPath = WslUtils.ConvertToDistroPath(path, out string distro);
                return(WslUtils.CreateWslProcess(distro, $"{wslPath} {args}", workingDirectory));
            }

            return(base.CreateProcess(path, args, useShellExecute, workingDirectory));
        }
        public void WslUtils_IsWslPath(string path, bool expected)
        {
            bool actual = WslUtils.IsWslPath(path);

            Assert.Equal(expected, actual);
        }