From 39b8cf50758fdb9ed39839bb8c8be9472a51a629 Mon Sep 17 00:00:00 2001 From: Tig Date: Fri, 29 Mar 2024 09:47:48 -0600 Subject: [PATCH] Added Reset() calls to CM tests --- UnitTests/Configuration/ThemeTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UnitTests/Configuration/ThemeTests.cs b/UnitTests/Configuration/ThemeTests.cs index e467b7ce4..f7d8c732f 100644 --- a/UnitTests/Configuration/ThemeTests.cs +++ b/UnitTests/Configuration/ThemeTests.cs @@ -27,6 +27,8 @@ public class ThemeTests Themes! [ThemeManager.SelectedTheme]!.Apply (); Assert.Equal (LineStyle.Double, FrameView.DefaultBorderStyle); + + Reset (); } [Fact] @@ -68,6 +70,7 @@ public class ThemeTests // remove test ColorScheme from Colors to avoid failures on others unit tests with ColorScheme Colors.ColorSchemes.Remove ("test"); Assert.Equal (5, Colors.ColorSchemes.Count); + Reset (); } [Fact] @@ -84,6 +87,7 @@ public class ThemeTests Dialog.ButtonAlignments.Right, (Dialog.ButtonAlignments)deserialized ["Dialog.DefaultButtonAlignment"].PropertyValue ); + Reset (); } [Fact] @@ -132,6 +136,7 @@ public class ThemeTests colorSchemes = (Dictionary)theme ["ColorSchemes"].PropertyValue; Assert.Equal (colorSchemes ["Test"].Normal, colorScheme.Normal); Assert.Equal (colorSchemes ["Test"].Focus, colorScheme.Focus); + Reset (); } [Fact] @@ -186,5 +191,6 @@ public class ThemeTests Assert.Equal (new Color (Color.BrightBlue), colorSchemes ["Test"].Normal.Background); Assert.Equal (new Color (Color.Cyan), colorSchemes ["Test"].Focus.Foreground); Assert.Equal (new Color (Color.BrightCyan), colorSchemes ["Test"].Focus.Background); + Reset (); } }