Closed skashitam closed 5 years ago
Hello @skashitam. What version are you using?
We use DebugParameters to configure the tests. Could try something similar to this:
var testCase = _tests.cases[testItem.TestName];
debugParams.ArgList = testCase.args; // Arglist will be something similar to "[name, [arg1, arg2]]"
SetDebugParameters(debugParams);
Run();
var result = _emulator.GetOutput();
Please contact me in Discord for further assistance ricklock#4529.
thank you for your answer.
I am using NeoEmulator 1.0.0. I installed NeoEmulator from NugetPM.
Thank you for letting me know about "debugParam".
I can not use name space "Neo.Debugger" in my project, Is the version of NeoEmulator old?
I'm not very sure, I'm not responsible for publishing it into Nuget, sorry :( Maybe you can try it by cloning the repository instead?
@lock9 Thank you very much.
I will clone from github's master repository and try it.
By the way, which version are you using? From which version will "debugParam" work?
I'm using the development branch, however I'm sure this is present in the current master branch too
@skashitam Were you able to solve your problem?
@lock9 Thank you very much. My problem is solved!
I want to do UnitTest of SmartContract using "Neo.Emulator".
I can execute methods without arguments, but I can not execute methods that require arguments. Is there a sample source setting arguments and executing UnitTest?
It is a source that has been successfully executed.