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:
Tig
2024-01-13 08:54:20 -07:00
committed by GitHub
parent d2ad11248f
commit 6ad36b7ac9
17 changed files with 3241 additions and 3321 deletions

View File

@@ -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";