Files
Terminal.Gui/Tests/UnitTestsParallelizable/Drawing/FillPairTests.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

30 lines
843 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnitTests_Parallelizable.DrawingTests;
public class FillPairTests
{
[Fact]
public void GetAttribute_ReturnsCorrectColors ()
{
// Arrange
var foregroundColor = new Color (100, 150, 200);
var backgroundColor = new Color (50, 75, 100);
var foregroundFill = new SolidFill (foregroundColor);
var backgroundFill = new SolidFill (backgroundColor);
var fillPair = new FillPair (foregroundFill, backgroundFill);
// Act
Attribute resultAttribute = fillPair.GetAttribute (new (0, 0));
// Assert
Assert.Equal (foregroundColor, resultAttribute.Foreground);
Assert.Equal (backgroundColor, resultAttribute.Background);
}
}