Example #1
0
        public void SetLazyValue()
        {
            _context.SetVariable("variable", new Lazy <object>(() => "variableValue"));

            var v = _context.GetVariable("variable");

            Assert.IsNotNull(v);
            Assert.IsInstanceOfType(v, typeof(string));
            Assert.AreEqual(v, "variableValue");
        }