package com.tt.honeyDue.viewmodel

import com.tt.honeyDue.viewmodel.TaskViewModel
import com.tt.honeyDue.network.ApiResult
import kotlin.test.Test
import kotlin.test.assertIs

class TaskViewModelTest {

    // MARK: - Initialization Tests

    @Test
    fun testInitialTasksState() {
        // Given
        val viewModel = TaskViewModel()

        // Then
        assertIs<ApiResult.Idle>(viewModel.tasksState.value)
    }

    @Test
    fun testInitialTasksByResidenceState() {
        // Given
        val viewModel = TaskViewModel()

        // Then
        assertIs<ApiResult.Idle>(viewModel.tasksByResidenceState.value)
    }

    @Test
    fun testInitialAddNewCustomTaskState() {
        // Given
        val viewModel = TaskViewModel()

        // Then
        assertIs<ApiResult.Idle>(viewModel.taskAddNewCustomTaskState.value)
    }
}
