ExpectedSchemaCondition Class

Specifies that the result set of a database unit test must match a specific schema.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Data.Schema.UnitTesting.Conditions.TestCondition
        Microsoft.Data.Schema.UnitTesting.Conditions.DataSetTestCondition
          Microsoft.Data.Schema.UnitTesting.Conditions.ExpectedSchemaCondition

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

Syntax

'Declaration
<DatabaseSchemaProviderCompatibilityAttribute(GetType(DatabaseSchemaProvider))> _
<DatabaseSchemaProviderCompatibilityAttribute(Nothing)> _
Public Class ExpectedSchemaCondition _
    Inherits DataSetTestCondition
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
[DatabaseSchemaProviderCompatibilityAttribute(null)]
public class ExpectedSchemaCondition : DataSetTestCondition
[DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))]
[DatabaseSchemaProviderCompatibilityAttribute(nullptr)]
public ref class ExpectedSchemaCondition : public DataSetTestCondition
[<DatabaseSchemaProviderCompatibilityAttribute(typeof(DatabaseSchemaProvider))>]
[<DatabaseSchemaProviderCompatibilityAttribute(null)>]
type ExpectedSchemaCondition =  
    class
        inherit DataSetTestCondition
    end
public class ExpectedSchemaCondition extends DataSetTestCondition

The ExpectedSchemaCondition type exposes the following members.

Constructors

  Name Description
Public method ExpectedSchemaCondition Initializes a new instance of the ExpectedSchemaCondition class.

Top

Properties

  Name Description
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Configuration Gets or sets the configuration information for the test condition. (Inherited from DataSetTestCondition.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property Enabled Gets or sets a value that indicates whether the test condition is enabled. (Inherited from TestCondition.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Name Gets or sets the test condition name. (Inherited from TestCondition.)
Public property Schema Gets or sets the expected schema.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property Verbose Gets or sets a value that indicates whether the output from the condition should include the schema.

Top

Methods

  Name Description
Public method Assert Called to determine whether the test condition passed or failed. (Overrides TestCondition.Assert(DbConnection, array<ExecutionResult[]).)
Public method ConfigureExpectedDataSet Called with a data set that has the expected schema. (Overrides DataSetTestCondition.ConfigureExpectedDataSet(DataSet).)
Public method CreateObjRef Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method ToString Returns a string that represents the current object. (Overrides Component.ToString().)

Top

Events

  Name Description
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.UnitTesting.Conditions Namespace