Skip to content
Prev Previous commit
Next Next commit
refactor(AsyncDataSourceHelper): improve tuple handling by using IsTu…
…pleType and UnwrapTuple methods
  • Loading branch information
thomhurst committed Sep 29, 2025
commit 1e29dc0f36ca49c0509f6ae93a7d1494d3e2a44d
5 changes: 3 additions & 2 deletions TUnit.Engine/Discovery/AsyncDataSourceHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using TUnit.Core.Helpers;

namespace TUnit.Engine.Discovery;

Expand Down Expand Up @@ -154,9 +155,9 @@ private static AsyncDataSourcePlaceholder CreateTypedPlaceholder(object item, Ty
else if (item != null)
{
// Try tuple parsing
if (Helpers.TupleHelper.TryParseTupleToObjectArray(item, out var tupleValues))
if (TupleHelper.IsTupleType(item))
{
items.Add(tupleValues!);
items.Add(TupleHelper.UnwrapTuple(item));
}
else
{
Expand Down
161 changes: 0 additions & 161 deletions TUnit.Engine/Helpers/TupleHelper.cs

This file was deleted.