Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Dec 6, 2024
1 parent d646136 commit 2d90d2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/Verify.NUnit/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public static IEnumerable<string> GetConstructorParameterNames(this Type type, i

return names;
}
}
}
21 changes: 0 additions & 21 deletions src/Verify.NUnit/Verifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,27 +84,6 @@ static InnerVerifier BuildVerifier(string sourceFile, VerifySettings settings, b
[.. parent.Arguments, .. adapter.Arguments]);
}

static object?[] GetParameters(TestAdapter adapter, IReadOnlyList<string>? methodParameterNames)
{
if (!adapter.TryGetParent(out var parent))
{
return adapter.Arguments;
}

var argumentsLength = parent.Arguments.Length;
if (argumentsLength == 0)
{
return adapter.Arguments;
}

if (methodParameterNames == null)
{
return parent.Arguments;
}

return [.. parent.Arguments, .. adapter.Arguments];
}

static SettingsTask Verify(
VerifySettings? settings,
string sourceFile,
Expand Down

0 comments on commit 2d90d2b

Please sign in to comment.