mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
23 lines
543 B
C#
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 ();
|
|
}
|
|
}
|