package com.peachpasswords.ui.pairing import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test class BackgroundSyncChoiceTest { @Test fun `successful pairing prompts before navigation`() { assertTrue(shouldPromptForBackgroundSync(pairingSucceeded = true)) assertFalse(shouldPromptForBackgroundSync(pairingSucceeded = false)) } @Test fun `back uses the recommended background default`() { assertEquals(true, backgroundSyncChoice(BackgroundSyncAction.DISMISS)) } @Test fun `secondary action selects manual sync`() { assertEquals(false, backgroundSyncChoice(BackgroundSyncAction.MANUAL_ONLY)) } @Test fun `primary action selects background sync`() { assertEquals(true, backgroundSyncChoice(BackgroundSyncAction.ALLOW)) } }