The DefaultPatternScope type exposes the following members.

Constructors

  NameDescription
DefaultPatternScope
Creates a new scope.

Methods

  NameDescription
AddDeferredComponentPopulator
Adds an action to the scope that enables a pattern to lazily populate the test model with components generated in nested scopes. This is used when Consume(IPatternScope, ICodeElementInfo, Boolean) is called with the option to skip children.
Consume
Consumes the specified code element using this scope as the containing scope.
CreateChildTestDataContextScope
Creates a child test data context derived from the builders of this scope. Returns the scope of the newly created child test data context.
CreateChildTestScope
Creates a child test with its own child data context derived from the builders of this scope. Returns the scope of the newly created child test.
CreateScope
Creates and registers a scope for a test component.
CreateTestParameterScope
Creates a test parameter for the test in scope with its own child data context derived from the builders of this scope. Returns the scope of the newly created test parameter.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
PopulateDeferredComponents
Asks all registered deferred component populators to build components whose construction had previously been deferred.
Process
Processes the specified code element using this scope as the current scope.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  NameDescription
FormatOverloaded.

Properties

  NameDescription
CanAddChildTest
Returns true if a child test can be added to the test within scope.
CanAddTestParameter
Returns true if a test parameter can be added to the test within scope.
CodeElement
Gets the code element associated with the scope, or null if none.
Evaluator
Gets the pattern evaluator.
IsTestDeclaration
Returns true if the scope represents a test declaration.
IsTestParameterDeclaration
Returns true if the scope represents a test parameter declaration.
TestBuilder
Gets a builder for applying contributions to the test currently being constructed within this scope. Never null.
TestComponentBuilder
Gets a builder for applying contributions to the test component currently being constructed within this scope.
TestDataContextBuilder
Gets a builder for applying contributions to the current test data context within the scope.
TestModelBuilder
Gets a builder for applying contributions to the test model.
TestParameterBuilder
Gets a builder for applying contributions to the test parameter currently being constructed within this scope, if there is one, or null if there is no test parameter in scope.

See Also