Skip to content

Commit

Permalink
Added basic query input and output basic test method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Irwin committed Apr 22, 2024
1 parent c32fc19 commit 12bb71b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SQuiL.Tests/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ namespace SQuiL.Tests;

public abstract class BaseTest
{
protected static Task TestQueryParamsAndReturns(string query, [CallerMemberName] string name = default!)
{
return TestHelper.Verify([TestHeader([name])], [$$"""
--Name: {{name}}
{{query}}
Use [Database];
"""]);
}

protected static string TestHeader(
IEnumerable<string> attributes = default!,
Func<string, string> callback = default!,
Expand Down

0 comments on commit 12bb71b

Please sign in to comment.