2
0
Эх сурвалжийг харах

Changed test to pass with RuneJsonConverter

Tig 10 сар өмнө
parent
commit
847e6111dc

+ 1 - 0
Terminal.Gui/Configuration/SourceGenerationContext.cs

@@ -20,5 +20,6 @@ namespace Terminal.Gui;
 [JsonSerializable (typeof (Dictionary<ColorName16, string>))]
 [JsonSerializable (typeof (Dictionary<string, ThemeScope>))]
 [JsonSerializable (typeof (Dictionary<string, ColorScheme>))]
+[JsonSerializable (typeof (Rune))]
 internal partial class SourceGenerationContext : JsonSerializerContext
 { }

+ 2 - 2
UnitTests/Configuration/SerializableConfigurationPropertyTests.cs

@@ -46,8 +46,8 @@ public class SerializableConfigurationPropertyTests
 
         // Ensure no property has the generic JsonStringEnumConverter<>
         EnsureNoSpecifiedConverters (properties, new [] { typeof (JsonStringEnumConverter<>) });
-        // Ensure no property has the type RuneJsonConverter
-        EnsureNoSpecifiedConverters (properties, new [] { typeof (RuneJsonConverter) });
+        //// Ensure no property has the type RuneJsonConverter
+        //EnsureNoSpecifiedConverters (properties, new [] { typeof (RuneJsonConverter) });
         // Ensure no property has the type KeyJsonConverter
         EnsureNoSpecifiedConverters (properties, new [] { typeof (KeyJsonConverter) });