using ClaudeDo.Ui.ViewModels;
using Xunit;

namespace ClaudeDo.Ui.Tests;

public class MainWindowCloseConfirmDecisionTests
{
    [Fact]
    public void True_when_at_least_one_mission_control_session_is_open()
    {
        Assert.True(IslandsShellViewModel.RequiresCloseConfirmation(1));
    }

    [Fact]
    public void True_when_multiple_mission_control_sessions_are_open()
    {
        Assert.True(IslandsShellViewModel.RequiresCloseConfirmation(3));
    }

    [Fact]
    public void False_when_no_mission_control_sessions_are_open()
    {
        Assert.False(IslandsShellViewModel.RequiresCloseConfirmation(0));
    }
}
