CopierTester<TValue,TCopier> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Test methods for copiers.
[Xunit.Trait("Category", "BVT")]
public abstract class CopierTester<TValue,TCopier> where TCopier : class, IDeepCopier<TValue>
[<Xunit.Trait("Category", "BVT")>]
type CopierTester<'Value, 'Copier (requires 'Copier : null and 'Copier :> IDeepCopier<'Value>)> = class
Public MustInherit Class CopierTester(Of TValue, TCopier)
Type Parameters
- TValue
- TCopier
- Inheritance
-
CopierTester<TValue,TCopier>
- Attributes
-
Xunit.TraitAttribute
Constructors
| Name | Description |
|---|---|
| CopierTester<TValue,TCopier>(ITestOutputHelper) |
Initializes a new CopierTester<TValue,TCopier> instance. |
Properties
| Name | Description |
|---|---|
| IsImmutable |
Gets a value indicating whether the type copied by this codec is immutable. |
| IsPooled |
Gets a value indicating whether the type copied by this codec is pooled. |
| Random |
Gets the random number generator. |
| ServiceProvider |
Gets the service provider. |
| TestValues |
Gets an array of test values. |
| ValueProvider |
Gets a value provider delegate. |
Methods
| Name | Description |
|---|---|
| CanCopyCollectionViaSerializer() |
Checks if values can be round-tripped when used as an element in a strongly-typed list. |
| CanCopyCollectionViaUntypedSerializer() |
Checks if values can be round-tripped when used as an element in a list of object. |
| CanCopyTupleViaSerializer() |
Checks if strongly-typed tuples containing the field type can be copied. |
| CanCopyUntypedTupleViaSerializer() |
Checks if object-typed tuples containing the field type can be copied. |
| Configure(ISerializerBuilder) |
Configures the serializer. |
| CopiedValuesAreEqual() |
Checks if copied values are equal. |
| CreateCopier() |
Creates a copier instance for testing. |
| CreateValue() |
Creates a value to copy. |
| Equals(TValue, TValue) |
Compares two values and returns |
| ReferencesAreAddedToCopyContext() |
Checks if references are added to the copy context. |