Exemple #1
0
        private void RunDebugger()
        {
            if (this.debugger == null)
            {
                shouldReset = true;
            }

            if (shouldReset)
            {
                if (!this.ResetDebugger())
                {
                    return;
                }
            }

            debugState = debugger.Run();
            UpdateState();
        }
Exemple #2
0
        public void TestSymbol()
        {
            var inputs = DataNode.CreateArray();

            inputs.AddValue("symbol");
            inputs.AddValue(null);

            emulator.Reset(inputs);
            emulator.Run();

            var result = emulator.GetOutput();

            Assert.NotNull(result);

            var symbol = result.GetString();

            Assert.IsTrue(symbol.Equals("DEMO"));
        }
Exemple #3
0
    public void PutSomething()
    {
        var inputs = MakeParameters("xx");

        emulator.Reset(inputs);
        emulator.Run();

        // obtain the smart contract output
        var result = emulator.GetOutput();

        // validate output
        var symbol = result.GetString();

        Debug.WriteLine(symbol);
    }