The RandomNumbersAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RandomNumbersAttribute |
Adds a column of random Decimal values.
|
Methods
| Name | Description | |
|---|---|---|
| Consume |
Consumes a code element and applies its contributions to the scope
provided by a containing pattern.
(Inherited from PatternAttribute.) | |
| Equals |
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.) | |
| 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.) | |
| GetGenerator |
Returns a generator of random values.
(Overrides GenerationDataAttribute..::.GetGenerator(IPatternScope).) | |
| GetHashCode |
Returns the hash code for this instance.
(Inherited from Attribute.) | |
| GetMetadata |
Gets the metadata for the data source.
(Inherited from DataAttribute.) | |
| GetTestParts |
Gets the test parts represented by a code element.
(Inherited from PatternAttribute.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsDefaultAttribute |
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.) | |
| Match |
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| PopulateDataSource |
Populates the data source with the contributions of this attribute.
(Inherited from GenerationDataAttribute.) | |
| Process |
Processes a code element and applies its contributions to the scope of this pattern.
The scope will typically have been introduced by the Consume(IPatternScope, ICodeElementInfo, Boolean) method
of a primary pattern applied to this code element.
(Inherited from DataPatternAttribute.) | |
| ThrowUsageErrorException | Overloaded. | |
| ToString | (Inherited from Object.) | |
| Validate |
Verifies that the attribute is being used correctly.
(Inherited from DataPatternAttribute.) |
Extension Methods
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| Count |
Gets or sets the number of random values that are going to be generated.
| |
| Description |
Gets or sets a description of the values provided by the data source.
(Inherited from DataAttribute.) | |
| ExpectedException |
Gets or sets the type of exception that should be thrown when the
values provided by the data source are consumed by test.
(Inherited from DataAttribute.) | |
| ExpectedExceptionMessage |
Gets or sets the message of the exception that should be thrown when the
values provided by the data source are consumed by test.
May be a substring of the actual exception message.
(Inherited from DataAttribute.) | |
| Filter |
Gets or sets the name of a method present in the test fixture
whose purpose is to prevent some specific values to be generated.
| |
| IsPrimary |
Returns true if this is a primary pattern.
(Inherited from PatternAttribute.) | |
| Maximum |
Gets or sets the upper bound of the numeric range where random values are going to be generated.
| |
| Minimum |
Gets or sets the lower bound of the numeric range where random values are going to be generated.
| |
| Order |
Gets or sets the order in which the decorator should be applied.
(Inherited from DecoratorPatternAttribute.) | |
| SourceName |
Gets or sets the name of the data source to create so that the values produced
by this attribute can be referred to elsewhere.
(Inherited from DataPatternAttribute.) | |
| TypeId |
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.) |
