示例#1
0
        public void ExternalVariable()
        {
            var n = new ConstantNetwork();

            n.Get("name").Value = new Value(13);
            var s = new MachineState(n, new DefaultIntrinsics());

            Assert.AreEqual(13, s.GetVariable(":name").Value.Number);
        }
示例#2
0
        public void ExternalVariable()
        {
            var n = new ConstantNetwork();

            n.Get("name").Value = new Value((Number)13);
            var s = new MachineState(n);

            Assert.AreEqual((Number)13, s.GetVariable(":name").Value.Number);
        }