Skip to content

Commit

Permalink
Fix data source handling of string
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Dec 19, 2024
1 parent a83166b commit 2c55d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/MSTest.TestAdapter/DynamicDataOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static bool TryGetData(object dataSource, [NotNullWhen(true)] out IEnume
return true;
}

if (dataSource is IEnumerable enumerable)
if (dataSource is IEnumerable enumerable and not string)
{
List<object[]> objects = new();
foreach (object? entry in enumerable)
Expand Down

0 comments on commit 2c55d27

Please sign in to comment.