Przeglądaj źródła

Workaround VS2022 17.10.0 Preview 1.0 breaks collection expression for certain types

Tig Kindel 1 rok temu
rodzic
commit
714121b1f9

+ 1 - 5
UnitTests/Drawing/ColorTests.ParsingAndFormatting.cs

@@ -108,11 +108,7 @@ public static partial class ColorTestsTheoryDataGenerators
 {
 {
     public static TheoryData<string?> TryParse_string_Returns_False_For_Invalid_Inputs ()
     public static TheoryData<string?> TryParse_string_Returns_False_For_Invalid_Inputs ()
     {
     {
-        TheoryData<string?> values =
-            [
-                null
-            ]
-            ;
+        TheoryData<string?> values = [];
 
 
         for (var i = char.MinValue; i < 255; i++)
         for (var i = char.MinValue; i < 255; i++)
         {
         {