paulirwin_lillisp/Lillisp.Tests/ProcessContextTests.cs
using Lillisp.Core;

namespace Lillisp.Tests;

public class ProcessContextTests
{
    [Fact]
    public void GetEnvironmentVariable_BasicTest()
    {
        var runtime = new LillispRuntime();

        Environment.SetEnvironmentVariable("foo", "bar");

        var result = runtime.EvaluateProgram("(get-environment-variable \"foo\")");

        Assert.Equal("bar", result);
    }

    [Fact]
    public void CommandLine_BasicTest()
    {
        var runtime = new LillispRuntime();

        var result = runtime.EvaluateProgram("(command-line)") as Pair;

        Assert.NotNull(result);
        Assert.NotEmpty(result);
    }
}