[Test, Ignore] // Cannot run this in a batch with the new singleton pattern. public void TestInitParams() { MockDevice device = new MockDevice(); REngine.SetEnvironmentVariables(); using (var engine = REngine.GetInstance()) { ulong maxMemSize = 128 * 1024 * 1024; StartupParameter parameter = new StartupParameter() { MaxMemorySize = maxMemSize, }; engine.Initialize(parameter: parameter, device: device); Assert.AreEqual(engine.Evaluate("memory.limit()").AsNumeric()[0], 128.0); } }
[Fact(Skip = "Cannot run this in a batch with the new singleton pattern")] // Cannot run this in a batch with the new singleton pattern. public void TestInitParams() { MockDevice device = new MockDevice(); REngine.SetEnvironmentVariables(); using (var engine = REngine.GetInstance()) { ulong maxMemSize = 128 * 1024 * 1024; StartupParameter parameter = new StartupParameter() { MaxMemorySize = maxMemSize, }; engine.Initialize(parameter: parameter, device: device); Assert.Equal(engine.Evaluate("memory.limit()").AsNumeric()[0], 128.0); } }