浏览代码

Merge pull request #3294 from tig/v2_3293_vs2022_preview10_workaround

Fixes #3293. Workaround VS2022 17.10.0 Preview 1.0 breaks collection expression fo…
Tig 1 年之前
父节点
当前提交
bc24d90b85
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      UnitTests/Drawing/ColorTests.ParsingAndFormatting.cs

+ 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 ()
     {
-        TheoryData<string?> values =
-            [
-                null
-            ]
-            ;
+        TheoryData<string?> values = [];
 
         for (var i = char.MinValue; i < 255; i++)
         {