Skip to content

Write Test for Quiz #3942

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

Closed
madhurgupta10 opened this issue Sep 27, 2020 · 2 comments · Fixed by #3953
Closed

Write Test for Quiz #3942

madhurgupta10 opened this issue Sep 27, 2020 · 2 comments · Fixed by #3953

Comments

@madhurgupta10
Copy link
Collaborator

Summary:
Write tests for Quiz package classes.

Would you like to work on the issue?
Yes

@madhurgupta10
Copy link
Collaborator Author

@misaochan While writing test for QuizController I noticed that context.getResources().getString() is used to get Strings instead we can directly use context.getString() on context, this makes it easier to mock during the test, should I change this in the class?

@maskaravivek
Copy link
Member

Yes, feel free to make this change. It won't affect the behavior.

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 a pull request may close this issue.

2 participants