In Write unit tests for Viewmodels part 4, from step 6 to 7.
step 6 code use "unScrambledWord" but 7 is "correctPlayerWord "
@Test
fun gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset() {
var currentGameUiState = viewModel.uiState.value
val unScrambledWord = getUnscrambledWord(currentGameUiState.currentScrambledWord)
}
@Test
fun gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset() {
var currentGameUiState = viewModel.uiState.value
val correctPlayerWord = getUnscrambledWord(currentGameUiState.currentScrambledWord)
In Write unit tests for Viewmodels part 4, from step 6 to 7.
step 6 code use "unScrambledWord" but 7 is "correctPlayerWord "
@Test fun gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset() { var currentGameUiState = viewModel.uiState.value val unScrambledWord = getUnscrambledWord(currentGameUiState.currentScrambledWord)
}
@Test fun gameViewModel_CorrectWordGuessed_ScoreUpdatedAndErrorFlagUnset() { var currentGameUiState = viewModel.uiState.value val correctPlayerWord = getUnscrambledWord(currentGameUiState.currentScrambledWord)
}