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

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

See Also

Reference

TestCondition Class

Microsoft.Data.Schema.UnitTesting.Conditions Namespace