TestCondition.Assert Method
Validates input parameters.
Namespace: Microsoft.Data.Schema.UnitTesting.Conditions
Assembly: Microsoft.Data.Schema.UnitTesting (in Microsoft.Data.Schema.UnitTesting.dll)
Syntax
'Declaration
Public Overridable Sub Assert ( _
validationConnection As DbConnection, _
results As ExecutionResult() _
)
public virtual void Assert(
DbConnection validationConnection,
ExecutionResult[] results
)
public:
virtual void Assert(
DbConnection^ validationConnection,
array<ExecutionResult^>^ results
)
abstract Assert :
validationConnection:DbConnection *
results:ExecutionResult[] -> unit
override Assert :
validationConnection:DbConnection *
results:ExecutionResult[] -> unit
public function Assert(
validationConnection : DbConnection,
results : ExecutionResult[]
)
Parameters
- validationConnection
Type: System.Data.Common.DbConnection
The 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: array<Microsoft.Data.Schema.UnitTesting.ExecutionResult[]
These are the results of the SQL test script execution that you want to evaluate. This is an array of ExecutionResult 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.