Edit

CopierTester<TValue,TCopier> Class

Definition

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 true if they are equal, or false if they are not equal.

ReferencesAreAddedToCopyContext()

Checks if references are added to the copy context.

Applies to