Files
Terminal.Gui/Tests/UnitTestsParallelizable/Drawing/DrawContextTests.cs
Tig fdeaa8331b Fixes #4298 - Updates test namespaces (#4299)
* Refactored test namespaces.
Moved some tests that were in wrong project.
Code cleanup

* Parrallel -> Parallel
2025-10-20 14:14:38 -06:00

20 lines
761 B
C#

namespace UnitTests_Parallelizable.DrawingTests;
public class DrawContextTests
{
[Fact (Skip = "Region Union is broken")]
public void AddDrawnRectangle_Unions ()
{
DrawContext drawContext = new DrawContext ();
drawContext.AddDrawnRectangle (new (0, 0, 1, 1));
drawContext.AddDrawnRectangle (new (1, 0, 1, 1));
Assert.Equal (new Rectangle (0, 0, 2, 1), drawContext.GetDrawnRegion ().GetBounds ());
Assert.Equal (2, drawContext.GetDrawnRegion ().GetRectangles ().Length);
drawContext.AddDrawnRectangle (new (0, 0, 4, 1));
Assert.Equal (new Rectangle (0, 1, 4, 1), drawContext.GetDrawnRegion ().GetBounds ());
Assert.Single (drawContext.GetDrawnRegion ().GetRectangles ());
}
}