Files
Thom Lamb 8b0368e810
SonarQube Analysis / sonarqube (push) Failing after 3m21s
test: fix SqlBreakdown tests project
2026-05-15 13:39:14 -05:00

31 lines
1.1 KiB
C#

using Strata.SqlTools.SqlBreakdown.Expressions;
using Strata.SqlTools.Visitors.Snowflake;
namespace Strata.SqlTools.SqlBreakdown.Tests.ExpressionTests;
/// <summary>
/// Represents a test case for expression tests with arrange, act, and assert phases.
/// </summary>
public class ExpressionTestCase
{
/// <summary>
/// Gets or initializes the name of the test case.
/// </summary>
public string Name { get; init; } = string.Empty;
/// <summary>
/// Gets or initializes the dictionary of expressions to arrange for the test.
/// </summary>
public Dictionary<string, Expression> Arrange { get; init; } = new();
/// <summary>
/// Gets or initializes the action to execute during the act phase of the test.
/// </summary>
public Func<Dictionary<string, Expression>, CommandVisitor, object> Act { get; init; } = null!;
/// <summary>
/// Gets or initializes the function to execute during the assert phase of the test that returns true if all assertions pass.
/// </summary>
public Func<object, bool> Assertions { get; init; } = null!;
}