ExecutionTimeCondition.Assert Method
This member overrides TestCondition.Assert(DbConnection, array<ExecutionResult[]).
Namespace: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions
Assembly: Microsoft.VisualStudio.TeamSystem.Data.UnitTesting (in Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.dll)
Syntax
'Declaration
Public Overrides Sub Assert ( _
validationConnection As DbConnection, _
results As ExecutionResult() _
)
'Usage
Dim instance As ExecutionTimeCondition
Dim validationConnection As DbConnection
Dim results As ExecutionResult()
instance.Assert(validationConnection, _
results)
public override void Assert(
DbConnection validationConnection,
ExecutionResult[] results
)
public:
virtual void Assert(
DbConnection^ validationConnection,
array<ExecutionResult^>^ results
) override
public override function Assert(
validationConnection : DbConnection,
results : ExecutionResult[]
)
Parameters
- validationConnection
Type: System.Data.Common.DbConnection
The context used to verify the state of the database, if needed. The DbConnection contained within the context must be open.
- results
Type: array<Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.ExecutionResult[]
An array of ExecutionResult instances.
Exceptions
Exception | Condition |
---|---|
AssertFailedException | If the value of ExecutionTime is greater than the maximum execution time. |
Permissions
- 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.
See Also
Reference
ExecutionTimeCondition Members
Microsoft.VisualStudio.TeamSystem.Data.UnitTesting.Conditions Namespace