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); }
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); }