Share via


TestCondition.Assert Method (DbConnection, SqlExecutionResult[])

 

Validates input parameters.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Syntax

public virtual void Assert(
    DbConnection validationConnection,
    SqlExecutionResult[] results
)
public:
virtual void Assert(
    DbConnection^ validationConnection,
    array<SqlExecutionResult^>^ results
)
abstract Assert : 
        validationConnection:DbConnection *
        results:SqlExecutionResult[] -> unit
override Assert : 
        validationConnection:DbConnection *
        results:SqlExecutionResult[] -> unit
Public Overridable Sub Assert (
    validationConnection As DbConnection,
    results As SqlExecutionResult()
)

Parameters

Remarks

Override this method to provide your own custom evaluation logic that is based on your particular test condition implementation. For example, you might base the evaluation on custom properties you added to your new test condition type.

See Also

TestCondition Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting.Conditions Namespace

Return to top