This commit is contained in:
Tig
2025-02-27 17:05:29 -07:00
5 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ namespace UICatalog.Scenarios;
[ScenarioCategory ("Layout")]
[ScenarioCategory ("Arrangement")]
[ScenarioCategory ("Tests")]
[ScenarioCategory ("Drawing")]
public class Clipping : Scenario
{
private int _hotkeyCount;

View File

@@ -8,6 +8,7 @@ public class ApplicationScreenTests (ITestOutputHelper output)
public void ClearScreenNextIteration_Resets_To_False_After_LayoutAndDraw ()
{
// Arrange
Application.ResetState (true);
Application.Init ();
// Act
@@ -64,6 +65,8 @@ public class ApplicationScreenTests (ITestOutputHelper output)
Application.Top.Dispose ();
Application.Top = null;
Application.Shutdown ();
Application.ResetState (true);
}
[Fact]

View File

@@ -30,6 +30,7 @@ public class SettingsScopeTests
// clean up
Locations = ConfigLocations.All;
Reset ();
}
[Fact]
@@ -63,7 +64,7 @@ public class SettingsScopeTests
Assert.Equal (Key.F, Application.NextTabGroupKey);
Assert.Equal (Key.B, Application.PrevTabGroupKey);
Locations = ConfigLocations.Default;
Locations = ConfigLocations.All;
Reset ();
}
@@ -109,6 +110,7 @@ public class SettingsScopeTests
Assert.True (Settings ["Themes"].PropertyValue is Dictionary<string, ThemeScope>);
Assert.Single ((Dictionary<string, ThemeScope>)Settings ["Themes"].PropertyValue);
Locations = savedLocations;
Locations = ConfigLocations.All;
Reset ();
}
}