public void HostNameTest()
    {
        if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
        {
            return;
        }

        var result = CommandExecutor.ExecuteAndCapture("hostname");

        var hostName = Dns.GetHostName();

        Assert.Equal(hostName, result.StandardOut.TrimEnd());
        Assert.Equal(0, result.ExitCode);
    }