private void RunDebugger() { if (this.debugger == null) { shouldReset = true; } if (shouldReset) { if (!this.ResetDebugger()) { return; } } debugState = debugger.Run(); UpdateState(); }
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")); }
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); }