Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageBox doesn't return the index of IsDefault button #3956

Open
BDisp opened this issue Mar 3, 2025 · 0 comments
Open

MessageBox doesn't return the index of IsDefault button #3956

BDisp opened this issue Mar 3, 2025 · 0 comments

Comments

@BDisp
Copy link
Collaborator

BDisp commented Mar 3, 2025

This test will fail:

    [Fact]
    [SetupFakeDriver]
    public void Button_IsDefault_True_Return_His_Index_On_Accepting ()
    {
        Application.Init ();

        Application.Iteration += (_, _) => Assert.True (Application.RaiseKeyDownEvent (Key.Enter));
        var res = MessageBox.Query ("hey", "IsDefault", "Yes", "No");

        Assert.Equal (0, res);

        Application.Shutdown ();
    }
BDisp added a commit to BDisp/Terminal.Gui that referenced this issue Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant