Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test for private methods #69

Merged
merged 1 commit into from
Jun 22, 2019

Conversation

shargon
Copy link
Member

@shargon shargon commented Jun 22, 2019

No description provided.

@shargon shargon requested a review from lightszero June 22, 2019 08:32
@shargon shargon merged commit 69deeb6 into neo-project:Branch_autogen_entrypoint Jun 22, 2019
@shargon shargon deleted the ut-private branch June 22, 2019 08:33
lightszero added a commit that referenced this pull request Jun 22, 2019
* Unit test for private methods (#69)

* Format (#70)

* make debugcode only for #if DEBUG
lightszero added a commit that referenced this pull request Jun 23, 2019
* call InsertAutoEntry when can't find a Main function.

* can call test01 with auto entrypoint.

* can call  funcs
 with params and without params.
 return void or return others.

* miss 2 files

* Unit test for private methods (#69)

* Format (#70)

* make debugcode only for #if DEBUG

* add testmethod for standard Contract

//old test method still keep
StackItem[] _params = new StackItem[] { "call02", new StackItem[] { "hello", 33 } };
var resultstack = testengine.ExecuteTestCase(_params);

//new test method
var result = testengine.ExecuteTestCaseStandard("call02", “hello",33);

//new test method(another way)
var result = testengine.GetMethod("call02").Run("hello",33);

* if no method was be found,use 'throw' to instead 'ret',make vm  fault.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant