chore: initial git load of code space
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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!;
|
||||
}
|
||||
Reference in New Issue
Block a user