mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes #2944. TreeView unit tests fail intermittently: Ensures Attribute and Color are read only value types (#3163)
* Removed resharper settings from editorconfig * Initial work in progress * API doc * API doc * initial commit * Fixed color and attribute issues * Made Color a value type (readonly struct) etc... * Removed stuff from other PR * Ensured Colors.ColorScheme has private setter * oops * oops 2 * Code cleanup * Code cleanup * oops 4 * Reverted Attrivte.Default to be readonly static * Fixed [Fact] [AutoInitShutdown]
This commit is contained in:
@@ -297,7 +297,7 @@ public class ConfigurationManagerTests {
|
||||
Assert.Equal (pi, Themes ["Default"] ["ColorSchemes"].PropertyInfo);
|
||||
}
|
||||
|
||||
[Fact] [AutoInitShutdown]
|
||||
[Fact, AutoInitShutdown]
|
||||
public void TestConfigurationManagerToJson ()
|
||||
{
|
||||
Reset ();
|
||||
@@ -518,7 +518,7 @@ public class ConfigurationManagerTests {
|
||||
Assert.Equal (new Color (Color.Blue), Colors.ColorSchemes ["Base"].Normal.Background);
|
||||
}
|
||||
|
||||
[Fact] [AutoInitShutdown]
|
||||
[Fact, AutoInitShutdown]
|
||||
public void TestConfigurationManagerInvalidJsonThrows ()
|
||||
{
|
||||
ThrowOnJsonErrors = true;
|
||||
@@ -690,7 +690,7 @@ public class ConfigurationManagerTests {
|
||||
ThrowOnJsonErrors = false;
|
||||
}
|
||||
|
||||
[Fact] [AutoInitShutdown]
|
||||
[Fact, AutoInitShutdown]
|
||||
public void LoadConfigurationFromAllSources_ShouldLoadSettingsFromAllSources ()
|
||||
{
|
||||
//var _configFilename = "config.json";
|
||||
|
||||
Reference in New Issue
Block a user