8
8
using Xunit ;
9
9
10
10
#nullable enable
11
+ #pragma warning disable CS1591 // Test classes do not require XML documentation comments
11
12
12
13
namespace Microsoft . Data . SqlClient . UnitTests
13
14
{
@@ -20,7 +21,7 @@ public class SqlTypeWorkaroundsTests
20
21
#region SqlBinary
21
22
22
23
public static TheoryData < byte [ ] > ByteArrayToSqlBinary_NonNullInput_Data =>
23
- new TheoryData < byte [ ] >
24
+ new ( )
24
25
{
25
26
Array . Empty < byte > ( ) ,
26
27
new byte [ ] { 1 , 2 , 3 , 4 } ,
@@ -53,7 +54,7 @@ public void ByteArrayToSqlBinary_NullInput()
53
54
#region SqlDecimal
54
55
55
56
public static TheoryData < SqlDecimal > SqlDecimalWriteTdsValue_NonNullInput_Data =>
56
- new TheoryData < SqlDecimal >
57
+ new ( )
57
58
{
58
59
SqlDecimal . MinValue ,
59
60
new SqlDecimal ( - 1.2345678 ) ,
@@ -102,7 +103,7 @@ public void SqlDecimalWriteTdsValue_NullInput()
102
103
#region SqlGuid
103
104
104
105
public static TheoryData < byte [ ] ? > ByteArrayToSqlGuid_InvalidInput_Data =>
105
- new TheoryData < byte [ ] ? >
106
+ new ( )
106
107
{
107
108
null ,
108
109
Array . Empty < byte > ( ) ,
@@ -122,7 +123,7 @@ public void ByteArrayToSqlGuid_InvalidInput(byte[]? input)
122
123
}
123
124
124
125
public static TheoryData < byte [ ] > ByteArrayToSqlGuid_ValidInput_Data =>
125
- new TheoryData < byte [ ] >
126
+ new ( )
126
127
{
127
128
new byte [ ] { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 } ,
128
129
new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 }
@@ -145,7 +146,7 @@ public void ByteArrayToSqlGuid_ValidInput(byte[] input)
145
146
#region SqlMoney
146
147
147
148
public static TheoryData < long , SqlMoney > LongToSqlMoney_Data =>
148
- new TheoryData < long , SqlMoney >
149
+ new ( )
149
150
{
150
151
{ long . MinValue , SqlMoney . MinValue } ,
151
152
{ ( long ) ( ( decimal ) - 123000000 / 10000 ) , new SqlMoney ( - 1.23 ) } ,
@@ -166,7 +167,7 @@ public void LongToSqlMoney(long input, SqlMoney expected)
166
167
}
167
168
168
169
public static TheoryData < SqlMoney , long > SqlMoneyToLong_NonNullInput_Data =>
169
- new TheoryData < SqlMoney , long >
170
+ new ( )
170
171
{
171
172
{ SqlMoney . MinValue , long . MinValue } ,
172
173
{ new SqlMoney ( - 1.23 ) , ( long ) ( new SqlMoney ( - 1.23 ) . ToDecimal ( ) * 10000 ) } ,
@@ -204,3 +205,5 @@ public void SqlMoneyToLong_NullInput()
204
205
#endif
205
206
}
206
207
}
208
+
209
+ #pragma warning restore CS1591
0 commit comments