File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/core-unit/Unit.Tests/UnitFormatTests Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2- using System . Linq ;
32
43namespace PrimeFuncPack . Core . Tests ;
54
65partial class UnitFormatTests
76{
87 public static TheoryData < string ? > ParseCases
9- #pragma warning disable IDE0028 // Simplify collection initialization
10- #pragma warning disable IDE0305 // Simplify collection initialization
118 =>
12- new ( EnumerateParseCases ( ) . ToArray ( ) ) ;
9+ new ( [ .. EnumerateParseCases ( ) ] ) ;
1310
1411 public static TheoryData < string > ParseCasesWithoutNull
1512 =>
16- new ( EnumerateParseCasesWithoutNull ( ) . ToArray ( ) ) ;
17- #pragma warning restore IDE0305 // Simplify collection initialization
18- #pragma warning restore IDE0028 // Simplify collection initialization
13+ new ( [ .. EnumerateParseCasesWithoutNull ( ) ] ) ;
1914
2015 private static IEnumerable < string ? > EnumerateParseCases ( )
2116 =>
You can’t perform that action at this time.
0 commit comments