public void TestVariable() { var lib = new TestVar(1e-8); var context = new ReflectionContext(lib); Assert.AreEqual(Parser.Parse("Epsilon").Eval(context), 1e-8); try { Parser.Parse("pi").Eval(context); } catch (Exception e) { Assert.IsTrue(e is InvalidDataException); } }
static void t1() { using (var a = new TestVar()) { } }