CopierTester<TValue, TCopier>
class
Namespace: Orleans.Serialization.TestKit
Test methods for copiers.
public abstract class CopierTester<TValue, TCopier> : SerializationTester where TCopier : class, Orleans.Serialization.Cloning.IDeepCopier<TValue>Constructors
CopierTester<TValue, TCopier>(ITestOutputHelper)Initializes a newOrleans.Serialization.TestKit.CopierTesterinstance.CopierTester<TValue, TCopier>(ITestOutputHelper, SerializationTesterFixture)Initializes a newOrleans.Serialization.TestKit.CopierTesterinstance.
Properties
IsImmutableGets a value indicating whether the type copied by this codec is immutable.IsPooledGets a value indicating whether the type copied by this codec is pooled.TestValuesGets an array of test values.ValueProviderGets a value provider delegate.
Methods
CanCopyCollectionViaSerializerChecks if values can be round-tripped when used as an element in a strongly-typed list.CanCopyCollectionViaUntypedSerializerChecks if values can be round-tripped when used as an element in a list of object.CanCopyTupleViaSerializerChecks if strongly-typed tuples containing the field type can be copied.CanCopyUntypedTupleViaSerializerChecks if object-typed tuples containing the field type can be copied.Configure(ISerializerBuilder)Configures the serializer.CopiedValuesAreEqualChecks if copied values are equal.CreateCopierCreates a copier instance for testing.CreateServiceProviderCreates the serializer service provider for this test class.CreateValueCreates a value to copy.Equals(TValue?, TValue?)Compares two values and returnstrueif they are equal, orfalseif they are not equal.ReferencesAreAddedToCopyContextChecks if references are added to the copy context.
