mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Working on shortcut
This commit is contained in:
@@ -105,16 +105,20 @@ public class ProgressBarTests
|
||||
var pb2 = new ProgressBar { ProgressBarStyle = ProgressBarStyle.MarqueeContinuous };
|
||||
|
||||
pb1.ProgressBarFormat = ProgressBarFormat.Simple;
|
||||
pb1.Layout ();
|
||||
Assert.Equal (ProgressBarFormat.Simple, pb1.ProgressBarFormat);
|
||||
Assert.Equal (1, pb1.Frame.Height);
|
||||
pb2.ProgressBarFormat = ProgressBarFormat.Simple;
|
||||
pb2.Layout ();
|
||||
Assert.Equal (ProgressBarFormat.Simple, pb2.ProgressBarFormat);
|
||||
Assert.Equal (1, pb2.Frame.Height);
|
||||
|
||||
pb1.ProgressBarFormat = ProgressBarFormat.SimplePlusPercentage;
|
||||
pb1.Layout ();
|
||||
Assert.Equal (ProgressBarFormat.SimplePlusPercentage, pb1.ProgressBarFormat);
|
||||
Assert.Equal (1, pb1.Frame.Height);
|
||||
pb2.ProgressBarFormat = ProgressBarFormat.SimplePlusPercentage;
|
||||
pb2.Layout ();
|
||||
Assert.Equal (ProgressBarFormat.SimplePlusPercentage, pb2.ProgressBarFormat);
|
||||
Assert.Equal (1, pb2.Frame.Height);
|
||||
}
|
||||
@@ -126,9 +130,11 @@ public class ProgressBarTests
|
||||
var pb = new ProgressBar ();
|
||||
|
||||
pb.ProgressBarFormat = ProgressBarFormat.Simple;
|
||||
pb.Layout ();
|
||||
Assert.Equal (1, pb.Frame.Height);
|
||||
|
||||
pb.ProgressBarFormat = ProgressBarFormat.SimplePlusPercentage;
|
||||
pb.Layout ();
|
||||
Assert.Equal (1, pb.Frame.Height);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user