using System.Reflection; namespace Jint.Tests.PublicInterface; public partial class InteropTests : IDisposable { private readonly Engine _engine; public InteropTests() { _engine = new Engine(cfg => cfg.AllowClr( typeof(Console).GetTypeInfo().Assembly, typeof(File).GetTypeInfo().Assembly)) .SetValue("log", new Action(Console.WriteLine)) .SetValue("assert", new Action(Assert.True)) .SetValue("equal", new Action(Assert.Equal)) ; } void IDisposable.Dispose() { } }