Color schemes - unit test fixes

This commit is contained in:
Tig
2024-09-22 15:33:06 -06:00
parent c33736dfa6
commit 5861277b65
24 changed files with 389 additions and 261 deletions

View File

@@ -5,7 +5,7 @@ namespace Terminal.Gui.ViewsTests;
public class ProgressBarTests
{
[Fact]
[AutoInitShutdown]
[AutoInitShutdown (configLocation: ConfigurationManager.ConfigLocations.None)]
public void Default_Constructor ()
{
var pb = new ProgressBar ();
@@ -15,11 +15,6 @@ public class ProgressBarTests
Assert.False (pb.CanFocus);
Assert.Equal (0, pb.Fraction);
//Assert.Equal (
// new Attribute (Color.BrightGreen, Color.Gray),
// new Attribute (pb.ColorScheme.HotNormal.Foreground, pb.ColorScheme.HotNormal.Background)
// );
Assert.Equal (Colors.ColorSchemes ["Base"].Normal, pb.ColorScheme.Normal);
Assert.Equal (1, pb.Frame.Height);
Assert.Equal (ProgressBarStyle.Blocks, pb.ProgressBarStyle);
Assert.Equal (ProgressBarFormat.Simple, pb.ProgressBarFormat);