Axiom.Runtime.Instructions.PutVariableInstruction.Name C# (CSharp) Method

Name() public method

public Name ( ) : string
return string
        public override string Name()
        {
            return "put_variable";
        }

Usage Example

        public void PutYVariable()
        {
            AbstractMachineState state = SetupMachine();

            state.E = new EnvironmentFrame(null, null, 10);

            PutVariableInstruction i = new PutVariableInstruction();

            object[] args = { "Y0", "X0" };

            i.Process(args);

            i.Execute(state);

            Assert.AreEqual("put_variable", i.Name());
            Assert.AreEqual(2, i.NumberOfArguments());
            Assert.IsTrue(state.E["Y0"].IsReference);
            Assert.AreSame(state.E["Y0"].Dereference(), ((AbstractTerm)state["X0"]).Dereference());
        }
All Usage Examples Of Axiom.Runtime.Instructions.PutVariableInstruction::Name