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

Build an adaptive app with adaptive layout: Android Basics with Compose #112

Open
mahdidul opened this issue Aug 14, 2024 · 0 comments
Open

Comments

@mahdidul
Copy link

mahdidul commented Aug 14, 2024

In the Section 4 of this codelab : Write unit tests for ViewModel mentioned this statement

Note: The code above uses the thingUnderTest_TriggerOfTest_ResultOfTest format to name the test function name:

thingUnderTest = gameViewModel
TriggerOfTest = CorrectWordGuessed
ResultOfTest = ScoreUpdatedAndErrorFlagUnset

But the test function name in this codelab don't follow that format. For example,

fun compactDevice_selectedEmailEmailRetained_afterConfigChange()

If we are still following the aformentioned format in "Write unit tests for ViewModel", the test function name will be,

fun compactDevice_configChanged_selectedEmailRetained()

I'm just curious since there's no additional statement about format to name the test function name in this codelab.

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

No branches or pull requests

1 participant