Skip to content

Commit fa2aed7

Browse files
authored
use GetValuesAsUnderlyingType from polyfill (#4987)
1 parent d65e341 commit fa2aed7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

TUnit.Core/Attributes/TestData/MatrixDataSourceAttribute.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,8 @@ private bool IsExcluded(object?[] exclusion, object?[] rowArray)
206206

207207
if (resolvedType.IsEnum)
208208
{
209-
#if NET5_0_OR_GREATER
210209
var enumValues = Enum.GetValuesAsUnderlyingType(resolvedType)
211210
.Cast<object?>();
212-
#else
213-
var enumValues = Enum.GetValues(resolvedType).Cast<object?>();
214-
#endif
215211

216212
if (isNullable)
217213
{

0 commit comments

Comments
 (0)