Skip to content

Toplevel.EnsureVisibleBounds throws an exception if border is null. #2267

@BDisp

Description

@BDisp

This unit test proves that:

public void EnsureVisibleBounds_With_Border_Null_Not_Throws ()
{
	var top = new Toplevel ();
	Application.Begin (top);

	var exception = Record.Exception (() => ((FakeDriver)Application.Driver).SetBufferSize (0, 10));
	Assert.Null (exception);

	exception = Record.Exception (() => ((FakeDriver)Application.Driver).SetBufferSize (10, 0));
	Assert.Null (exception);
}

Here a print screen of the error if the console height is resized to zero:

imagem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions