Files
Terminal.Gui/Tests/UnitTests/View/SchemeTests.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

23 lines
543 B
C#

using Xunit;
namespace UnitTests.ViewTests;
[Trait ("Category", "View.Scheme")]
public class SchemeTests
{
[Fact]
[UnitTests.AutoInitShutdown]
public void View_Resolves_Attributes_From_Scheme ()
{
View view = new Label { SchemeName = "Base" };
foreach (VisualRole role in Enum.GetValues<VisualRole> ())
{
Attribute attr = view.GetAttributeForRole (role);
Assert.NotEqual (default, attr.Foreground); // Defensive: avoid all-defaults
}
view.Dispose ();
}
}