public static void Shutdown() { ((IDisposable)prolog).Dispose(); ((IDisposable)v8).Dispose(); v8 = null; prolog = null; }
public static void Initialize(TestContext context) { var settings = new XsbPrologInitializationSettings { HomeDirectory = @"C:\Program Files (x86)\XSB", BinaryDirectory = @"C:\Program Files (x86)\XSB\config\x64-pc-windows\bin", PrependBinaryDirectoryToPath = true }; v8 = new V8ScriptEngine(); prolog = new XsbPrologEngine(settings); v8.AddHostType("Console", typeof(Console)); v8.AddHostObject("prolog", prolog); }