Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
siewers committed Dec 31, 2024
1 parent c635058 commit b050f51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Xunit.Combinatorial/CombinatorialClassDataAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static void EnsureValidValuesSourceType(Type valuesSourceType)
return;
}

if (TheoryDataHelper.IsTheoryData(valuesSourceType))
if (TheoryDataHelper.IsTheoryDataType(valuesSourceType))
{
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Xunit.Combinatorial/TheoryDataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal static class TheoryDataHelper
/// <returns><see langword="true"/> if the instance was TheoryData, otherwise <see langword="false"/>.</returns>
public static bool TryGetTheoryDataValues(IEnumerable source, out object?[]? theoryDataValues)
{
if (IsTheoryData(source.GetType()))
if (IsTheoryDataType(source.GetType()))
{
theoryDataValues = source.Cast<ITheoryDataRow>().SelectMany(row => row.GetData()).ToArray();
return true;
Expand All @@ -33,7 +33,7 @@ public static bool TryGetTheoryDataValues(IEnumerable source, out object?[]? the
/// </summary>
/// <param name="sourceType">The type to check.</param>
/// <returns><see langword="true"/> if the type is an implementation of IEnumerable of <see cref="ITheoryDataRow"/>.</returns>
public static bool IsTheoryData(Type sourceType)
public static bool IsTheoryDataType(Type sourceType)
{
return sourceType.GetInterfaces()
.Any(interfaceType => interfaceType.IsGenericType &&
Expand Down

0 comments on commit b050f51

Please sign in to comment.