mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Improvements to LineDrawing scenario (#2732)
* Improvements to LineDrawing scenario - Add drag drawing of current line - Add undo/redo - LineCanvas is now more mutable with StraightLine now public and mutable * Prevent redo after drawing * Fix xmldoc and test --------- Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Terminal.Gui.DrawingTests {
|
||||
[Theory, SetupFakeDriver]
|
||||
public void Bounds (Orientation orientation, int x, int y, int length, int expectedX, int expectedY, int expectedWidth, int expectedHeight)
|
||||
{
|
||||
var sl = new LineCanvas.StraightLine (new Point (x, y), length, orientation, LineStyle.Single);
|
||||
var sl = new StraightLine (new Point (x, y), length, orientation, LineStyle.Single);
|
||||
|
||||
Assert.Equal (new Rect (expectedX, expectedY, expectedWidth, expectedHeight), sl.Bounds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user