-
Notifications
You must be signed in to change notification settings - Fork 334
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
Make it possible to create unit tests for Actors #173
Comments
@Xorpio Thanks for reporting. Will using Moq and setting them correctly for ActorService help in this case? Or do you have other suggestions in mind? |
The problem is that there are some hardcoded dependencies that cannot be faked. (as far as i know). Like on this line: |
@Xorpio please check out this work. |
Oh nice work. it looks like a working solution. I can look further in depth in the coming days. |
@amanbha should this issue be closed? |
@malotho I would suggest to keep it open to track more improvements needed in SDK itself to make it easier to write unit tests. |
@amanbha that makes sense. |
Keeping this open for tracking more improvements to making actor unit tests |
The advice here appears very outdated... is there any examples with updated SDK references on how to do unit testing with actors? |
Right now i can't create a actor inside a unit test. Take the following Actor code for example
And using the following unit test:
When i run the unit test it throws a NullRefference exception
The text was updated successfully, but these errors were encountered: