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
validationConnection
Type: System.Data.Common.DbConnectionThe context that is used to verify the state of the database, if it is required. The DbConnection that is contained in the context must be open.
results
Type: Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlExecutionResult[]These are the results of the SQL test script execution that you want to evaluate. This is an array of SqlExecutionResult instances.
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