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

1 participant
@shargon
Copy link
Member

commented Jun 22, 2019

No description provided.

@shargon shargon requested a review from lightszero Jun 22, 2019

@shargon shargon merged commit 69deeb6 into neo-project:Branch_autogen_entrypoint Jun 22, 2019

1 check failed

Travis CI - Pull Request Build Errored
Details

@shargon shargon deleted the shargon:ut-private branch Jun 22, 2019

lightszero added a commit that referenced this pull request Jun 22, 2019

update #if (#71)
* 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

Branch autogen entrypoint (#67)
* 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
You can’t perform that action at this time.