appgen
06/06/2024, 9:45 AM@Test
fun game_mode_returns_default_value_when_no_value_is_set() {
val userDefaults = NSUserDefaults.standardUserDefaults
userDefaults.removeObjectForKey(ConfigurationRepository.CONFIGURATION_FILE)
val configurationRepository: ConfigurationRepository = get()
val defaultGameMode = configurationRepository.gameMode
assertEquals(GameMode.MODE_ONE, defaultGameMode)
}
am getting Unresolved reference. for
get()
i have also tried
... by inject()
here is the gradle dependency
iosTest.dependencies {
implementation(libs.kotlin.test)
implementation(libs.koin.test)
implementation("co.touchlab:stately-common:2.0.5")
}
John O'Reilly
06/06/2024, 9:50 AMKoinTest
?John O'Reilly
06/06/2024, 9:50 AMappgen
06/06/2024, 9:52 AM: KoinTest
thanks for pointing me to the right direction 😉